{hero}

colReorder.enable

Since: ColReorder 1.5.0

Initial enablement state of ColReorder.
Please note - this property requires the ColReorder extension for DataTables.

Description

It can be useful to disable ColReorder's user input controls at certain times, depending on the state of your application. This option provides that ability when the table is initially created, while the colReorder.enable() and colReorder.disable() methods provide the option to enabling the user interaction after the table has been created.

Type

boolean

Description:
  • true - ColReorder is enabled when the DataTable is created
  • false - ColReorder is not enabled, and can later be enabled via the API.

Default

  • Value: true

ColReorder is enabled

Example

Disable ColReorder on initialisation:

new DataTable('#myTable', {
	colReorder: {
		enable: false
	}
});

Related

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