column-reorder

Columns have been reordered by the end user or API.
Please note - this property requires the ColReorder extension for DataTables.

Description

When using ColReorder you may wish to know when a table has been reordered by an end user or through the API. This event provides that information.

This event is triggered when a column is reordered - if colReorder.realtime is enabled this can be during the column reordering drag.

Please note that, as with all DataTables emitted events, this event is triggered with the dt namespace. As such, to listen for this event, you must also use the dt namespace by simply appending .dt to your event name, or use the on() method to listen for the event which will automatically append this namespace.

arraymapping - Array of integers that define how the old column positions map to the new positions

booleandrop - Indicate if this event is the result of a mouse drop (i.e. the user has finished moving the columns). This is useful to distinguish between a live reorder and the final state. Requires ColReorder 1.2.1 or newer.