rowReorder.enable()
Enable / disable the user's ability to reorder rows.
Please note - this property requires the RowReorder extension for DataTables.
Description
It can sometimes be useful to enable and disable the end user's ability to reorder rows, for example while processing an update at the server-side. This method provides the ability to both enable (its primary use!) and disable (through an optional boolean flag) RowReorder. When disabled click and drag events will not be processed by RowReorder.
Type
function rowReorder.enable( [ enable ] )
- Description:
Enable, or optionally disable, the end user's ability to click and drag to reorder rows.
- Parameters:
Name Type Optional 1 enable
Yes - default:true Flag that can be used to indicate if row reordering should be enabled or disabled.
- Returns:
DataTables API instance
Example
Enable row reordering:
var table = new DataTable('#myTable');
table.rowReorder.enable();
Related
The following options are directly related and may also be useful in your application development.