Options
Editor has a number of options which can be configured using the initialisation object that is passed into the DataTable.Editor()
constructor when creating a new Editor instance. This section details all of these options, with code examples of how each option can be used.
An example initialisation using the ajax
and table
options:
new DataTable.Editor( {
ajax: '/api/staff',
table: '#staff'
} );
There are a number of options which can be used to customise your Editor instances, which are all fully documented below. For general information about how Editor's initialisation options can be used, please refer to the options manual.
Library | Name | Summary |
---|---|---|
Core | Change the parameter name used to indicate the CRUD action on form submission | |
Core | Ajax configuration for form data submission | |
Core | Add or modify data submitted to the server upon an Ajax request | |
Core | Allow a DELETE Ajax request to have a body or not | |
Core | Specify replacement parameters for the URL per submission | |
Core | Set the display controller for the main form interface | |
Core | Fields to add to the form during initialisation | |
Core | Form configuration options for the editing types Editor offers | |
Core | Form configuration options for bubble editing | |
Core | Form configuration options for inline editing | |
Core | Form configuration options for the main editing display | |
Core | JSON property from which to read / write the row's ID property | |
Core | The DataTable that Editor will operate on | |
Core | Form layout template | |
Field | Add an additional class to a field container | |
Field | Define a custom comparison function for the field's data | |
Field | Data property from the data source object to use as the data for this field | |
Field | Default value for the field to take | |
Field | Control the decoding of HTML entities in input elements | |
Field | Information text that is shown below the input control. | |
Field | Define a function that can transform a value being read from a field | |
Field | Field ID | |
Field | Label to display for the field input | |
Field | Information text that is shown below the field label | |
Field | Information message that is shown below the input control. | |
Field | Control the end user's ability to edit the field when multiple rows are selected. | |
Field | Unique name of the field - sent to the server on form submission | |
Field | Replace | |
Field | List of options for fields which provide options to select from | |
Field | Properties that Editor should use for label and values for options | |
Field | Define a function that can transform a value being set in a field | |
Field | Define if the field's value should be included in the submitted data | |
Field | Field input type | |
Internationalisation | Language configuration options for Editor | |
Internationalisation | Close button title text | |
Internationalisation | Create display language options | |
Internationalisation | Create button text | |
Internationalisation | Message shown at the top of the "create" form | |
Internationalisation | Create display submit button text | |
Internationalisation | Create display title text | |
Internationalisation | Date time field input language options | |
Internationalisation | Time picker ante meridiem / post meridiem (am / pm) text | |
Internationalisation | Date picker month names | |
Internationalisation | Next month button text (hidden by default) | |
Internationalisation | Previous month button text (hidden by default) | |
Internationalisation | Time picker unknown value | |
Internationalisation | Date picker week day names | |
Internationalisation | Edit display language options | |
Internationalisation | Edit button text | |
Internationalisation | Message shown at the top of the "edit" form | |
Internationalisation | Edit display submit button text | |
Internationalisation | Edit display title text | |
Internationalisation | Error message language options | |
Internationalisation | General error message language string | |
Internationalisation | Multi-row editing language options | |
Internationalisation | Information text detailing the multi-row editing behaviour | |
Internationalisation | Information message shown when multi-row editing, but a field is not multi-row editable | |
Internationalisation | Button to restore multiple values if multi-row editing | |
Internationalisation | Text to show to the end user when a field has multiple values | |
Internationalisation | Remove display language options | |
Internationalisation | Remove button text | |
Internationalisation | Row deletion confirmation message | |
Internationalisation | Remove display submit button text | |
Internationalisation | Remove display title text | |
Deprecated | Url to submit the Ajax form submission to. Deprecated - use | |
Deprecated | Unique table identifier string sent to the server. Deprecated - use | |
Deprecated | The DataTable that Editor will operate on. Deprecated - use |