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

367 Views Asked by At

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

There are 1 best solutions below

1
Mahesh Kumar On

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