Skip to content
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
Open
@danhaller

Description

@danhaller

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:

  1. Whether it's actually wanted or was deliberately omitted (select2 has this functionality)
  2. Whether I should be calling the existing select functionality or adding new callbacks etc.
  3. 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

cmddavid commented on Apr 5, 2016

@cmddavid

+1

Would be a useful feature. I'm also thinking about adding this to one of my apps.

user378230

user378230 commented on Apr 5, 2016

@user378230
Contributor

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

tiffanywei commented on Jul 21, 2016

@tiffanywei

+1

cmddavid

cmddavid commented on Jul 21, 2016

@cmddavid

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.

added a commit that references this issue on Oct 11, 2016
b867a2c
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Selecting a group · Issue #411 · angular-ui/ui-select