问题
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