You can use the directive dt-instance
where you provide a variable that will be
populated with the DataTable instance once it's rendered:
Or you can provide a callback function(dtInstance)
instead in the dt-instance
directive:
The dtInstance
variable will be populated with the following value:
id
is the ID of the DataTableDataTable
is the DataTable API instancedataTable
is the jQuery Object