table_setColumnOrder
function table_setColumnOrder<TFeatures, TData>(table, updater): void;Defined in: features/column-ordering/columnOrderingFeature.utils.ts:160
Routes a column order updater through the table's column-order change handler.
The updater may be a next ordered id array or a function of the previous
array, matching the instance table.setColumnOrder behavior.
Type Parameters
TFeatures
TFeatures extends TableFeatures
TData
TData extends RowData
Parameters
table
Table_Internal<TFeatures, TData>
updater
Returns
void
Example
table_setColumnOrder(table, ['firstName', 'lastName', 'age'])