rowReorder.formOptions
Set the options for the Editor form when submitting data.
Please note - this property requires the RowReorder extension for DataTables.
Description
When Editor is used with RowReorder (rowReorder.editor
) it will automatically submit only the changed values when rows are reordered in the table. Editor also has the option to submit the full information for the row through the submit
parameter of the form-options
object. This parameter provides the ability to configure the form-options
used by RowReorder.
Only the submit
parameter is likely to be useful for the form-options
object when used in RowReorder, although it is possible to set the other parameters as well.
Type
object
- Description:
A form options object for Editor. Please refer to the
form-options
documentation for full information on the options available for this parameter.
Default
- Value:
{}
An empty object is used by default. RowReorder augments that with the option submit: 'changed'
which can be overridden if required.
Example
Submit the full information for all changed rows.:
new DataTable('#myTable', {
rowReorder: {
dataSrc: 'sequence',
editor: editor,
formOptions: {
submit: 'allIfChanged'
}
}
});