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:
idis the ID of the DataTableDataTableis the DataTable API instancedataTableis the jQuery Object