row-reorder-canceled
Reordering canceled by the end user.
Please note - this property requires the RowReorder extension for DataTables.
Description
If the cancelable option enabled this event is fired when the ESC key is pressed or the user dropped the element outside of the table.
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
Example
Log when row reorder action is started:
var table = new DataTable('#myTable', {
rowReorder: true
});
table.on('row-reorder-canceled', function (e, startRowIndex) {
console.log('Row reorder canceled: ', startRowIndex);
});