The ability to reset columnOrder in DataTable #899
Labels
Type: Enhancement
Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone
I'm submitting a ...
3.1.3
TypeScript 3.4.5
Currently in the datatable there is no ability to reset/restore a default layout (columnWith, columnSort order, columnSortKey, visible columns, etc...). So I fixed that myself, there is one thing though that cannot be reset / restored without refreshing or by remounting the datatable and that is de columnOrder.
When I add the columns as children to DataTable I already sorted them myself by the default layout but these lines DataTable.js#L1179-L1194 use the states columnOrder which cannot be modified from outside.
A few suggestions
instead of:
Add a property to render children as is used like this
Or by exposing the order as a property
The text was updated successfully, but these errors were encountered: