{hero}

rowReorder.disable()

Since: RowReorder 1.2.0

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 disable RowReorder. When disabled click and drag events will not be processed by RowReorder.

Its companion method rowReorder.enable() can then be used to re-enable user interaction if required.

Type

function rowReorder.disable()

Description:

Disable the end user's ability to click and drag to reorder rows.

Returns:

DataTables API instance

Example

Disable row reordering:

var table = new DataTable('#myTable');

table.rowReorder.disable();

Related

The following options are directly related and may also be useful in your application development.