{hero}

row-reorder-changed

Since: RowReorder 1.3.3

Row moved into new position by the end user.
Please note - this property requires the RowReorder extension for DataTables.

Description

This event is fired when the user moves a given row into a new position.

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.

Type

function function( e, params )

Parameters:

Example

Log when row-reorder-changed is fired:

var table = new DataTable('#myTable', {
	rowReorder: true
});

table.on('row-reorder-changed', function (e, { insertPlacement, insertPoint }) {
	console.log('Row moved ' + insertPlacement + ' the ' + insertPoint + '. row');
});