leocaseiro / angular-chosen

AngularJS Chosen directive is an AngularJS Directive that brings the Chosen jQuery in a AngularJS way
http://leocaseiro.github.io/angular-chosen/
MIT License
682 stars 248 forks source link

Support for making the optgroup clickable #250

Closed jain-chinmay closed 6 years ago

jain-chinmay commented 6 years ago

When using a select with optgroups, having all the items in a group added to the selection when the group label is clicked would be a very handy feature

For instance, I have a configuration form with all card brands grouped by the issuer. For the moment, if someone wants to select all the card brands issued by a certain issuer, he must select all items one by one. With this feature, he would simply click on the issuer name and all the brands got selected. He can then remove specific brands according to his requirement.

leocaseiro commented 6 years ago

Hi @Madmancj, thank you for opening your issue.

The angular chosen is a wrap of the jQuery library using AngularJS. Unfortunately, there's not such behaviour in the jQuery Chosen repo.

There's an open issue for that and I'm, not sure if they'll ever implement that.

https://github.com/harvesthq/chosen/issues/323

jain-chinmay commented 6 years ago

Hi @leocaseiro,

I do agree that the jQuery Chosen has not provided support for making the optgroup clickable. But having this feature over the top of jQuery Chosen can be extremely useful.

Thanks.

VanTanev commented 6 years ago

This is out of scope for this project. Your best approach would be to fork chosen, add the feature, and use this repo to integrate your fork into angular.

On Dec 22, 2017 2:05 PM, "Chinmay" notifications@github.com wrote:

Hi @leocaseiro https://github.com/leocaseiro,

I do agree that the jQuery Chosen has not provided support for making the optgroup clickable. But having this feature over the top of jQuery Chosen can be extremely useful.

Thanks.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/leocaseiro/angular-chosen/issues/250#issuecomment-353585521, or mute the thread https://github.com/notifications/unsubscribe-auth/AAMXH8jcYdBTbJXWeRLbGhlL-e1r09eMks5tC5sFgaJpZM4RIAzN .