ngx-datatable icon indicating copy to clipboard operation
ngx-datatable copied to clipboard

need Deselect event

Open abdullahkdev opened this issue 4 years ago • 4 comments

Need deselect event that will contain the row/ rows deselected in the datatable

abdullahkdev avatar Jul 09 '20 10:07 abdullahkdev

Much needed feature

ammar4568 avatar Jul 09 '20 10:07 ammar4568

In the meantime, you can easily create a "deselected"-Observable yourself like so:

Stackblitz Demo

Basically, it's an observable that looks at pairs of the list of selected items and returns what rows were deselected (meaning, when you select something new, a pair of "previous" and "current" are filtered). Maybe ngx-datatable could do it in a similar way?

evilstiefel avatar Jul 14 '20 09:07 evilstiefel

In the meantime, you can easily create a "deselected"-Observable yourself like so:

Stackblitz Demo

Basically, it's an observable that looks at pairs of the list of selected items and returns what rows were deselected (meaning, when you select something new, a pair of "previous" and "current" are filtered). Maybe ngx-datatable could do it in a similar way?

It does not deselect the row, if you select-deselect the same one.

alexandis avatar Feb 09 '22 12:02 alexandis

@alexandis try this one https://stackblitz.com/edit/angular-ivy-f38n6l?file=src/app/app.component.ts 😄

AntonDeXy avatar Mar 19 '22 13:03 AntonDeXy