I am new to angular and ngx datatable. how to get row data on mouse click event
onClick(event) {
// I need to get row data here
}
Just use (activate)="onActivate($event)" property on ngx-datatable like this
<ngx-datatable #table
....
(activate)="onActivate($event)"
....
>
Then in TS file, use this method
onActivate(event) {
if(event.type == 'click') {
console.log(event.row);
}
}