rowReorder.editor

Since: RowReorder 1.0.0

Attach an Editor instance for database updating. Please note - this property requires the RowReorder extension for DataTables.

Description

When completing a row reordering action you will typically wish to update the data source to reflect the changes made by the end user. This can be done with RowReorder's integration with Editor.

This option can specify an Editor instance that should be used to submit the changes to the server. Upon drag completion the changes will be immediately submitted to the server and the table redrawn with the updated data retrieved from the server.

Type

DataTable.Editor

Description:

The Editor instance to use for editing of the table

Default

  • Value: null

No Editor instance is automatically attached.

Example

Attach an Editor instance (editor) to RowReorder to write the changes to a database:

$('#myTable').DataTable( {
	rowReorder: {
		dataSrc: 'sequence',
		editor:  editor
	}
} );