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:
new DataTable.Editor()
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.
Library | Name | Summary |
---|---|---|
Display | Get / set the Ajax configuration for the Editor | |
Display | Blur the currently displayed editor | |
Display | 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 | Close the form display | |
Display | Create a dependency on a field's value that can alter the form | |
Display | 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 | Show / hide error messages for the whole form, or a specific field | |
Display | Get information about an uploaded file | |
Display | Get information about multiple uploaded files | |
Display | Show / hide an information message for the whole form, or a specific field | |
Display | Display the main form editor to the end user | |
Display | Get / set the ordering of fields, as they are displayed in the form | |
Display | 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 | |
Editing | Activate bubble editing | |
Editing | Create a new item | |
Editing | Destroy the Editor instance | |
Editing | Edit an item using the main editing display | |
Editing | Get the ids of the rows being edited | |
Editing | Activate inline editing | |
Editing | Create a row inline | |
Editing | 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 | Remove (delete) entries from the table | |
Editing | Submit a form to the server for processing | |
Events | Remove an event listener | |
Events | Listen for an Editor event | |
Events | Listen for an event once and then remove the listener | |
Fields | Add a new field to the form | |
Fields | Remove one or more fields from the form | |
Fields | Disable one or more fields, disallowing user input | |
Fields | Enable one or more fields, allowing user input | |
Fields | Get a field instance for a named field | |
Fields | Get the value of one or more fields | |
Fields | Remove one or more fields from the form display | |
Fields | Determine if there is an error condition displayed in the form | |
Fields | Get the container node for one or more fields | |
Fields | Set the value of one or more fields | |
Fields | Show one or more fields in the display that was previously hidden | |
Fields | Get or set the value for one or more fields | |
Field instance methods | 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 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 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) | |
Static methods | Obtain label / value paired data from objects and arrays | |
Static methods | Create an easy to use DOM id from an input string | |
Deprecated | Get a list of the field names configured. |