preCreate

Since: Editor 1.0

Pre-row creation event - triggered before the row is added to the DataTable.
Please note - this property requires the Editor extension for DataTables.

Description

Pre-create new row event, fired just before DataTables calls the fnAddData method to add new data to the DataTable, allowing modification of the data that will be used to insert into the table.

Event naming / backwards compatibility note

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

Parameters: