This repository was archived by the owner on Oct 2, 2019. It is now read-only.
This repository was archived by the owner on Oct 2, 2019. It is now read-only.
Selecting a group #411
Open
Description
Hi,
I'm interested in selecting a group header to filter by all of the members of that group. I've made this crudely work by just calling ctrl.select when a group is selected and checking whether .items is present to determine what my ui-select-match expression should look like.
I'm happy to do a pull request to add this functionality but wanted to check:
- Whether it's actually wanted or was deliberately omitted (select2 has this functionality)
- Whether I should be calling the existing select functionality or adding new callbacks etc.
- Should selection add the group name or the group members to the input box, and the same question goes for the model.
Essentially I don't want to pull request something that is really opinionated towards just my use case...
Thanks
Activity
cmddavid commentedon Apr 5, 2016
+1
Would be a useful feature. I'm also thinking about adding this to one of my apps.
user378230 commentedon Apr 5, 2016
For reference: Someone attempted to do this in #1527, its not in a fit state to be considered for merge but you may find the work useful.
tiffanywei commentedon Jul 21, 2016
+1
cmddavid commentedon Jul 21, 2016
I've been using the code from #1527 for some time now, it works well. Only thing i had to change was one of the templates. The click event was missing in the theme i was using.
feati(ngClick): add header click for dropdown