The Grid component allows reordering grid columns programmatically or using the drag-and-drop feature.
The following plugins implement column reordering features:
Note that the plugin order is important.
Import the plugins listed above to set up a simple Grid with column reordering enabled.
In uncontrolled mode, specify the initial column order in the TableColumnReordering plugin's defaultOrder
property.
In controlled mode, pass the column order to the TableColumnReordering plugin's order
property and handle the onOrderChange
event to control the column order state.