{hero}

rowReorder.enable()

Since: RowReorder 1.2.0

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:
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.