All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.
- Fixed issue with
min_heightnot expanding iflen(rows)was greater than 10. - Fixed issues with
row_heightproperty
max_rows_in_viewportto expand the viewport up tomax_rows_in_viewportrows.
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_viewportis supplied, up tomax_rows_in_viewportwill be displayed. This is10by default. So, ifmax_rows_in_viewportis 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_heightis supplied, the viewport will be resized tomin_heightregardless of the number of rows that are supplied. - If
max_rows_in_viewportis supplied andmin_heightis supplied,max_rows_in_viewporttakes precedence.
- Fixed issue with
min_heightregarding theDataTableunder 10 rows. - Fixed issue with
filterbar 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
resizableproperty on theDataTablecomponent. 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_widthsproperty 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]
)DataTablenow automatically resizes to fit data that has less than 10 rows.
filterable=True,sortable=True, androw_selectable=Trueall work well with each other<,<=,>,>=are supported as filter strings
Bad release!
- 🎉
DataTablerows can be selected withrow_selectable=Trueand by listening to theselected_rowsproperty.
- Fixed the CSS on
DataTable. It looks a lot better now.
- This release was broken
- A
columnsproperty to theDataTablethat specifes the order of the columns
- Callbacks to the
DataTablecomponent
- The
DataTableis nowsortableandfilterable
- A DataTable component which uses the adazzle React Data Grid
- Initial release