initEdit
Form initialised for the edit
action event.
Please note - this property requires the Editor extension for DataTables.
The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please sign-in, alternatively an Editor license can be purchased on this site, or sign up for the free trial.
Description
Edit method activated event, fired when the edit API method has been called, just prior to the form being shown. Useful for manipulating the form specifically for the edit state.
As of Editor 1.8 the init*
events can return a Promise
which is used to delay the execution of any further Editor code until the Promise has been resolved. This is useful if you need to make an Ajax call to the server for any additional information, validation, locking or any other async action.
Event naming / backwards compatibility note
Prior to Editor 1.3, events were prefixed with the string on
and this event was called onInitEdit
. That event name can still be used, and will function exactly the same way as the event documented here. The new name is used for simplicity and coherence with the event naming conventions in DataTables.