You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(select): Add select header to the md-select #2812
Yesterday I filled a pull request ( #2797 ) for adding a search bar in the md-select component. As @jelbourn pointed out this wasn't the right way to add this feature, so now I'm willing to do it the right way.
What's the best way to address this? Just implement the same functionality as material does it?
That will mean something like this is possible:
<md-selectplaceholder="Favorite food"><md-select-header><input[ngModel]="searchTerm" type="search" placeholder="Search for a vegetable.."></md-select-header><md-option*ngFor="let food of foods | filter " [value]="food.value">
{{ food.viewValue }}
</md-option></md-select>
Reacted by Gabriel Boudreau, Aleš, rafal-ma, Rob Jones, Quentin, jbs321, Tarik Alani, Thierry Fleury, doronsever, Guillaume de Jabrun and 13 more
The idea is pretty much the same as the AngularJS version. One of the things holding us back from working on this has been that we're not sure what the appropriate accessibility story for this feature is. The most common use case the the select header is a filter input, but the standard role="listbox" doesn't have anything like a associated filter. Adding it would require some research as to whether there is something we can do to make this interaction work for screen-reader users.
As far as API and implementation details go, @kara will likely have some input.
@Eernie, FYI, another use case of md-select-header is a check all / uncheck all (button(s) or tri-state checkbox) if the options are multi-select.
Would be great if there were also a md-select-footer. For selects with a large number of options, md-select-footer could contain the paging controls (links/buttons to first, prev, next, last).
Activity
jelbourn commentedon Jan 26, 2017
The idea is pretty much the same as the AngularJS version. One of the things holding us back from working on this has been that we're not sure what the appropriate accessibility story for this feature is. The most common use case the the select header is a filter input, but the standard
role="listbox"doesn't have anything like a associated filter. Adding it would require some research as to whether there is something we can do to make this interaction work for screen-reader users.As far as API and implementation details go, @kara will likely have some input.
Eernie commentedon Jan 31, 2017
Is it possible that I port the AngularJS version for now and add the whole
role="listbox"part later when this is clear?fxck commentedon Feb 6, 2017
@Eernie go for it
feat(select): add md-select-header directive
esinek commentedon Feb 21, 2017
@Eernie, FYI, another use case of md-select-header is a check all / uncheck all (button(s) or tri-state checkbox) if the options are multi-select.
Would be great if there were also a md-select-footer. For selects with a large number of options, md-select-footer could contain the paging controls (links/buttons to first, prev, next, last).
feat(select): add md-select-header directive
feat(select): add md-select-header directive
feat(select): add md-select-header directive
feat(select): add md-select-header directive
exequiel09 commentedon Aug 28, 2017
What's the status of this? Is this merged or not?
5 remaining items
doronsever commentedon Oct 22, 2017
Any news on this issue?
It looks like #6856 was merged
crisbeto commentedon Oct 22, 2017
There's a pending pull request at #7835.
feat(select): add mat-select-header component
andplusblaw commentedon Nov 30, 2017
Hi I was wondering if 'mat-select-header' is available yet?
jrood commentedon Dec 6, 2017
@andplusblaw unfortunately not yet. Please leave feedback at #7835 if you have any.
andplusblaw commentedon Dec 20, 2017
@jrood thank you
liesahead commentedon Dec 11, 2018
Still no? More than 1 year passed
irowbin commentedon Jan 24, 2019
Any progress on this one?
sainisagar310 commentedon Feb 23, 2019
+1
vehansayvazi commentedon Apr 9, 2019
+1
jelbourn commentedon May 17, 2019
Closing as a duplicate of #5697 because that one has more votes (even though this one is older)
angular-automatic-lock-bot commentedon Sep 10, 2019
This issue has been automatically locked due to inactivity.
Please file a new issue if you are encountering a similar or related problem.
Read more about our automatic conversation locking policy.
This action has been performed automatically by a bot.