selectStyle
Select style change event.
Please note - this property requires the Select extension for DataTables.
Description
This event is triggered whenever the selection style is changed. This can be done using the select.style initialisation option or the select.style() API method.
Please note that, as with all DataTables emitted events, this event is triggered with the dt namespace. As such, to listen for this event, you must also use the dt namespace by simply appending .dt to your event name (this is done automatically when using on() and one()).
Type
function( e, dt, style )
Parameters:
| Name | Type | Optional | |
|---|---|---|---|
| 1 | e | No | |
jQuery event object | |||
| 2 | dt | No | |
DataTables API instance | |||
| 3 | style | No | |
The selection style now active on the DataTable. See | |||
Example
Log whenever the selection style changes:
var table = new DataTable('#myTable');
table.on('selectStyle', function (e, dt, style) {
console.log('Selection style is now: ', style);
});