fields.multiEditable
Control the end user's ability to edit the field when multiple rows are selected.
Please note - this property requires the Editor extension for DataTables.
Description
Editor's multi-row editing abilities can allow very rapid data input, but sometimes there will be fields which you do not wish to allow the end user to edit in a batch. Consider for example a field with a unique value per row such as a sequence, or even a primary key.
To allow fields to be edited when an individual row is selected, but not when multiple rows are, this option can be used and set to false. When that is the case, and multiple rows are selected, the information message configured by i18n.multi.noMulti will be shown to the end user, explaining why the field cannot be edited. Additional information, specific to the field in question, could be added using the fields.fieldInfo option.
Type
This option can be given in the following type(s):
Default
- Value:
true
The field is editable when multiple rows are selected.
Example
Disable multi-row editing on a sequence field:
var editor = new DataTable.Editor({
ajax: 'api/staff',
table: '#myTable',
fields: [
{
label: 'Sequence:',
name: 'seq',
multiEditable: false
}
]
});