-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(choices): allow user select group header #1998
Conversation
User can now select header of group by option to select all item in this group #1074 old pull request ref
User can now select header of group by option to select all item in this group #1074 old pull request ref
User can now select header of group by option to select all item in this group #1074 old pull request ref
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we make a seperate attribute directive for this?
As the uiSelectController
already has a lot of functionality in the code i would like to separate some additional features vs the core functionality. Second I think there needs to be some tests made and a working example plunker so that i can have a look at it.
It would also be nice if the keyboard navigation supported this as well |
Hi, we will use it in production. I must complete some task then I will changes this PR. |
@Jefiozie thanks for your review. I just push a new commit to create a new directive (ui-select-header-group-selectable) that must be added on ui-select-choices directive with multiple and groups check. It's my first PR, just say me if I must improve something.
How can I create a plunker with my repo to show the result? How can I insert my select.js and select.css? @randdusing I don't know where I can find the code that catch up keyboard event... Can you help me? |
I've heard this library is completely dead... so may not be worth investing time into a PR. I'm not exactly sure where the general keyboard handling is, but maybe try to find where DOWN is referenced. |
You can use the The keyboard codes are in the |
@Jefiozie here the plunker: http://plnkr.co/edit/Ujr9amwp3hYMHwSgNdMT?p=preview to try it. Is it ok for you? |
Just small request: can we make it optional? I.e. |
@Klinton90 the new plunker with your option: http://plnkr.co/edit/xtJ0SEGneWijtkc06hw5?p=preview. @Jefiozie why the build fail? |
Many thanks! |
@DarkIsDude.. Even, I need this feature in my application. When do you think you can resolve and have a PR ready? Do you have a timeline when will it be ready? Please let me know. |
@DarkIsDude Could you change something to test the build? Place the brackets on line 3195 and place it on line 3203 I cannot reproduce it but it looks a bit off. (but maybe its just me 😄 |
@kprabhuvel, I work on it when I can, it's not a priority in our team... |
@DarkIsDude no I don't know why it does this. Merged other PR yesterday wasn't any problem there. Looks like something is breaking for Firefox as it doesn't start. |
So bad :( ... I just run And all pass... I don't know how can I fix it. Someone can help me? |
Hi @DarkIsDude could you merge the master in your branch and see if the issue is fixed? |
@Jefiozie yeah!!! It works. Well done. I'm waiting this PR is merged and after I will work on the keyboard navigation. |
Hi @DarkIsDude , Could you add a small part on the wiki that this is working from the upcoming version? |
@Jefiozie did it ;). |
Found couple related issues. PR is #2069 |
After merge pr angular-ui#1998, build process doesn't work fine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
when you have On-select function defined for ui-select. It gets triggered for each item when you click on group.
User can now select header of group by option to select all item in this group
#1074 old pull request ref