daniel-nagy / md-data-table

Material Design Data Table for Angular Material
MIT License
1.9k stars 519 forks source link

mdOnSelect method does not run if no selection #264

Closed hectorgr closed 8 years ago

hectorgr commented 8 years ago

I need to execute a function when no row is selected, but the method in md-on-select = "mymethod" is not triggered, this is triggered only when a row is selected. Any solution?

daniel-nagy commented 8 years ago

There's a deselect callback, md-on-deselect, you could use to check if the number of selected items is zero.

hectorgr commented 8 years ago

thanks, it's just what I needed.