Angular 7 - How to load material snackbar when checkbox checked in datatable

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-10 11:37:39

问题


I have created datatable with checkbox. When user select checkbox, snackBar must be load (currently working good) with length of selected checkbox. But snakcbar loading everytime when user select more than one checkbox. How to load snackbar and just show length of selected ids.(without load snackbar everytime). Snackbar just need to show increment of selected ids. I push selected ids in public endorsementIds: string[] = [];. If endorsementIds length is 0, snackbar must hide. Here is my code in stackblitz. Thank you in advance :)

来源:https://stackoverflow.com/questions/55292538/angular-7-how-to-load-material-snackbar-when-checkbox-checked-in-datatable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!