setData

Since: Editor 1.0

Set data event - triggered before the page is updated (deprecated).
Please note - this property requires the Editor extension for DataTables.

Deprecated!

As of v1.6 this feature has been deprecated. This feature has not yet been scheduled for removal, but its use is discouraged and the alternatives discussed below should be used.

This event has been superseded by preCreate, preEdit and preRemove which provide finer grain control.

Description

Set data event, fired when the data is gathered from the form to be used to update the DataTable. This is a "global" version of preCreate, preEdit and preRemove and can be used to manipulate the data that will be added to the DataTable for all three actions.

Event naming / backwards compatibility note

Prior to Editor 1.3, events were prefixed with the string on and this event was called onSetData. 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.

Type

function( e, json, data, action )

Parameters: