question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

feat(select): Add select header to the md-select

See original GitHub issue

Bug, feature request, or proposal:

Feature request

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-select placeholder="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>

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:23
  • Comments:19 (7 by maintainers)

github_iconTop GitHub Comments

4reactions
crisbetocommented, Oct 22, 2017

There’s a pending pull request at https://github.com/angular/material2/pull/7835.

1reaction
liesaheadcommented, Dec 11, 2018

Still no? More than 1 year passed

Read more comments on GitHub >

github_iconTop Results From Across the Web

Directives > mdSelect - AngularJS Material
Parameter Type Description * ng‑model expression expression Assignable angular expression to data‑bind to. placeholder string string Placeholder hint text.
Read more >
Angular Material: md-select-header inside tab not working
I am having a trouble regarding this problem. I am using: Angular Material 1.1.0. Angular 1.5.5. The problem occurs when I put the...
Read more >
Learn Angular Material - Full Tutorial - YouTube
Learn how to use Angular Material in this full tutorial course for beginners. Angular Material is a UI component library for Angular JS ......
Read more >
Andrew King resigns from managing director role at Select ...
Andrew King MD Select & Save. Andrew King has resigned from his position of managing director of Select & Save.
Read more >
Ui-select, md-select - JSFiddle - Code Playground
<md-select-header class="demo-select-header"> ... See feat(jqLite): use querySelectorAll instead of getElementsByTagName in ... Add closest() to jqLite.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found