ui-select-header-group-selectable directive on ui-select-choice does not work

◇◆丶佛笑我妖孽 提交于 2020-05-30 07:09:44

问题


ui-select-header-group-selectable in ui-select-choices makes the headers clickable, so you can select all the items in a group.

Am I right or wrong?


回答1:


I edited the select.js for my project. I am not keeping real checkboxes, but using glyphicons.

example-screenshot

https://github.com/maheshparlapalli/modified-ui-select-js-for-group-wise-check-boxes

search for 'toggleAllGroupSelected' in select.js, which is newly added function.

You will find the usage of 'toggleAllGroupSelected' in multiple places. Add this code to your select.js



来源:https://stackoverflow.com/questions/51081969/ui-select-header-group-selectable-directive-on-ui-select-choice-does-not-work

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