Since: Select 1.0.0

Select style change event.
Please note - this property requires the Select extension for DataTables.


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()).


function function( e, dt, style )



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);