useColumnOrder
useColumnOrder
is a plugin hook that implements basic column reordering. As columns are reordered, their header groups are reverse-engineered so as to never have orphaned header groups.
The following options are supported via the main options object passed to useTable(options)
initialState.columnOrder: Array<ColumnId>
[]
column
structureThe following values are provided to the table instance
:
setColumnOrder: Function(updater: Function | Array<ColumnId>) => void
updater
can be a function or value. If a function
is passed, it will receive the current value and expect a new one to be returned.The best JavaScript newsletter! Delivered every Monday to over 76,000 devs.