All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Fixed issue with
min_height
not expanding iflen(rows)
was greater than 10. - Fixed issues with
row_height
property
max_rows_in_viewport
to expand the viewport up tomax_rows_in_viewport
rows.
To summarize the height behaviour:
- By default, up to 10 rows are displayed. If only 5 rows are supplied, only 5 rows will be displayed and the viewport will shrink. If 15 rows are supplied, 10 rows are displayed.
- If
max_rows_in_viewport
is supplied, up tomax_rows_in_viewport
will be displayed. This is10
by default. So, ifmax_rows_in_viewport
is 20 and 5 rows are supplied, only 5 rows will be displayed and the viewport will shrink. If 25 rows are supplied, only 20 rows will be displayed. - If
min_height
is supplied, the viewport will be resized tomin_height
regardless of the number of rows that are supplied. - If
max_rows_in_viewport
is supplied andmin_height
is supplied,max_rows_in_viewport
takes precedence.
- Fixed issue with
min_height
regarding theDataTable
under 10 rows. - Fixed issue with
filter
bar under 2 rows. Before, if there was only one row of data and the user clicked on 'Filter' the data would disappear. To improve the UI, if there is only one row additional height is added to the table div element so the user can still see the data if the 'Filter' button is selected.
- A
resizable
property on theDataTable
component. IfTrue
, then the columns can be resized by clicking and dragging on the border on the edge of the column header. IfFalse
, they cannot be resized. By default, columns are resizable.
- A
column_widths
property can be used to set the column widths of theDataTable
. Simple example:
ROWS = [
{'a': 'AA', 'b': 1},
{'a': 'AB', 'b': 2},
]
dt.DataTable(
rows=ROWS,
columns=['a', 'b'],
column_widths=[200, 400]
)
DataTable
now automatically resizes to fit data that has less than 10 rows.
filterable=True
,sortable=True
, androw_selectable=True
all work well with each other<
,<=
,>
,>=
are supported as filter strings
Bad release!
- 🎉
DataTable
rows can be selected withrow_selectable=True
and by listening to theselected_rows
property.
- Fixed the CSS on
DataTable
. It looks a lot better now.
- This release was broken
- A
columns
property to theDataTable
that specifes the order of the columns
- Callbacks to the
DataTable
component
- The
DataTable
is nowsortable
andfilterable
- A DataTable component which uses the adazzle React Data Grid
- Initial release