API
Editor has an extensive API which can be used to control and manipulate the form after the initialisation has completed. The Editor API is designed to reflect the structure of the data in the table and how you will typically interact with the table through the API.
The API is accessed as methods of the object returned when creating a new Editor instance:
let editor = new DataTable.Editor({
// ... options
});
For general information on how the Editor API operates, including its chaining, how to manipulate the fields in the forum and definitions of the terminology used in this reference, please prefer to the API manual.
| Name | Summary | Library | Group |
|---|---|---|---|
Obtain label / value paired data from objects and arrays | Static | ||
Create an easy to use DOM id from an input string | Static | ||
Add a new field to the form | Fields | ||
Get / set the Ajax configuration for the Editor | Display | ||
Blur the currently displayed editor | Display | ||
Activate bubble editing | Editing | ||
Get / set the bubble location relative to the cell. | Display | ||
Reposition an editing bubble when it is visible. | Display | ||
Define the control buttons to be shown in the form | Display | ||
Remove one or more fields from the form | Fields | ||
Close the form display | Display | ||
Create a new item | Editing | ||
Create a dependency on a field's value that can alter the form | Display | ||
Destroy the Editor instance | Editing | ||
Disable one or more fields, disallowing user input | Fields | ||
Get / set the display state of the Editor form | Display | ||
Get the host node for the display controller | Display | ||
Get a list of the fields that are currently shown in the Editor form | Display | ||
Edit an item using the main editing display | Editing | ||
Enable one or more fields, allowing user input | Fields | ||
Show / hide error messages for the whole form, or a specific field | Display | ||
Get a field instance for a named field | Fields | ||
Get / set the default value of the field | Field instance methods | ||
Disable a field, disallowing user input | Field instance methods | ||
Determine if a field is shown in the editing form or not | Field instance methods | ||
Enable a field, allowing user input | Field instance methods | ||
Determine if a field is enabled or not | Field instance methods | ||
Show / hide error messages for a field | Field instance methods | ||
Get / set description information for the field | Field instance methods | ||
Focus on a field | Field instance methods | ||
Get the value of a field | Field instance methods | ||
Remove a field from the form display | Field instance methods | ||
Check if a field is currently in an error state | Field instance methods | ||
Get the input node(s) for the field | Field instance methods | ||
Determine if a field has different values for the items being edited | Field instance methods | ||
Get / set the label for a field | Field instance methods | ||
Get / set label information for the field | Field instance methods | ||
Get / set a dynamic information message for the field | Field instance methods | ||
Get the values for a field (multi-row editing aware) | Field instance methods | ||
Restore the original values if edited to a single value | Field instance methods | ||
Set the values for a field (multi-row editing aware) | Field instance methods | ||
Get a field's configured name | Field instance methods | ||
Get the container node for the field | Field instance methods | ||
Show / hide processing indicator for an individual field | Field instance methods | ||
Set the value of a field | Field instance methods | ||
Show a field in the display that was previously hidden | Field instance methods | ||
Get / set the submit flag for a field | Field instance methods | ||
Get the field type | Field instance methods | ||
Update the options available for list field types | Field instance methods | ||
Get / set the value of a field | Field instance methods | ||
Get a list of the field names configured. | Fields | ||
Get information about an uploaded file | display | ||
Get information about multiple uploaded files | display | ||
Get the value of one or more fields | Fields | ||
Remove one or more fields from the form display | Fields | ||
Lookup a language token | Editing | ||
Get the ids of the rows being edited | Editing | ||
Determine if there is an error condition displayed in the form | Fields | ||
Activate inline editing | Editing | ||
Create a row inline | Editing | ||
Show / hide an information message for the whole form, or a specific field | Display | ||
Get / set the mode of operation the Editor form is currently in | Editing | ||
Get the identifier for the row(s) currently being edited / removed. | Editing | ||
Get the values for one or more fields (multi-row editing aware) | Field instance methods | ||
Set the values for one or more fields (multi-row editing aware) | Field instance methods | ||
Get the container node for one or more fields | Fields | ||
Remove an event listener | Events | ||
Listen for an Editor event | Events | ||
Listen for an event once and then remove the listener | Events | ||
Display the main form editor to the end user | Display | ||
Get / set the ordering of fields, as they are displayed in the form | Display | ||
Remove (delete) entries from the table | Editing | ||
Set the value of one or more fields | Fields | ||
Show one or more fields in the display that was previously hidden | Fields | ||
Submit a form to the server for processing | Editing | ||
Get / set the template element to use for the main form | Display | ||
Get / set the title of the form | Display | ||
Remove existing dependent actions from a field | Display | ||
Get or set the value for one or more fields | Fields |