options
Initialisation of a DataTable - options passed.
Description
This event is triggered before DataTables does any processing of the parameters passed into it. As such, this can be useful to set defaults, transform a configuration given else where (e.g. custom HTML) or for plug-in authors that require specific options to be configured.
Unlike the other events triggered by DataTables there is no access to the DataTables API for the table when this event is fired as the API hasn't yet been initialised for the table.
Please note that, as with all DataTables emitted events, the event object has a DataTables API instance available on it in the dt property.
Type
function( e, options )
Parameters:
| Name | Type | Optional | |
|---|---|---|---|
| 1 | e | No | |
Event object | |||
| 2 | options | No | |
DataTables configuration options. | |||
Related
The following options are directly related and may also be useful in your application development.