Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request: group by #263

Closed
ghost opened this issue Feb 13, 2018 · 1 comment
Closed

Request: group by #263

ghost opened this issue Feb 13, 2018 · 1 comment
Assignees

Comments

@ghost
Copy link

ghost commented Feb 13, 2018

Hello. Great plugin! Best among the alternatives. I have a request. Can I count on the implementation of the following functionality?

I have a flat list of items I'd like to group them by some property. For example:

List of items:

[
  { name: 'Adam',      email: 'adam@email.com',      age: 12, country: 'United States' },
  { name: 'Amalie',    email: 'amalie@email.com',    age: 12, country: 'Argentina' },
  { name: 'Estefanía', email: 'estefania@email.com', age: 21, country: 'Argentina' },
  { name: 'Adrian',    email: 'adrian@email.com',    age: 21, country: 'Ecuador' },
  { name: 'Wladimir',  email: 'wladimir@email.com',  age: 30, country: 'Ecuador' },
  { name: 'Samantha',  email: 'samantha@email.com',  age: 30, country: 'United States' },
  { name: 'Nicole',    email: 'nicole@email.com',    age: 43, country: 'Colombia' },
  { name: 'Natasha',   email: 'natasha@email.com',   age: 54, country: 'Ecuador' },
  { name: 'Michael',   email: 'michael@email.com',   age: 15, country: 'Colombia' },
  { name: 'Nicolás',   email: 'nicole@email.com',    age: 43, country: 'Colombia' }
]

Expected behavior: http://angular-ui.github.io/ui-select/demo-group-by.html (plunker)

This issue #186 suggests having "children" property. My request is a bit different so I created a separate issue.

@anjmao
Copy link
Member

anjmao commented Feb 14, 2018

Hi, @Maxkorz. Yes, I started to work on this one.

@anjmao anjmao self-assigned this Feb 14, 2018
@anjmao anjmao mentioned this issue Mar 2, 2018
@anjmao anjmao closed this as completed in 53e4819 Mar 5, 2018
jakemdunn pushed a commit to jakemdunn/ng-select that referenced this issue Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants