I am using Angular Datatables in one of the application and have used the select extension as specified in the documentation like the following:
<table class="table animate__animated animate__fadeIn" datatable [dtOptions]="dtOptions" [dtTrigger]="dtTrigger" [id]="tableId">
</table>
and the options are defined as follows:
this.dtOptions = {
info: false,
order: [],
select: true,
dom: 'Bfrtip',
buttons: [
'selectAll',
'selectNone'
]
};
}
Now the select functionality is working fine, but I need to get the selected rows when I click on a button. How can I do this ? Is there any option in the Datatables API for accessing selected rows ?
Documentation - https://l-lin.github.io/angular-datatables/#/extensions/select
In the core datatables, there is an option for adding the action callback. But not sure whether it will work with selectAll