Uh oh!
There was an error while loading. Please reload this page.
feat(select): add ability to customize the select trigger - #3341
Conversation
fxck
commented
Mar 16, 2017
Any progress on this? I think it could be useful for #2722 (comment) |
fxck
commented
Apr 23, 2017
How's this feature coming? ;) |
mmalerba
commented
Aug 8, 2017
Is this the equivalent of what |
crisbeto
commented
Aug 8, 2017
Pretty much, It was quite a while ago since I opened this PR. |
fxck
commented
Aug 8, 2017
mm? |
Hmm looking through it again, this won't be the same as the |
Adds the `md-select-trigger` directive which allows users to customize the selected value. E.g. it is now possible to do something like this, if the user wanted to reverse the selected label for some reason:
```ts
<md-select placeholder="Food" [formControl]="control" #select="mdSelect">
<md-select-trigger>
{{ select.selected?.viewValue.split('').reverse().join('') }}
</md-select-trigger>
<md-option *ngFor="let food of foods" [value]="food.value">
{{ food.viewValue }}
</md-option>
</md-select>
```
Fixesangular#2275.4be049b to
e3cdb21Comparemmalerba
commented
Aug 9, 2017
@jelbourn does this new name sound good to you? |
crisbeto
commented
Aug 9, 2017
We agreed on it in Slack @mmalerba. |
This issue has been automatically locked due to inactivity. Read more about our automatic conversation locking policy. This action has been performed automatically by a bot. |
Adds the
md-select-triggerdirective which allows users to customize the selected value. E.g. it is now possible to do something like this, if the user wanted to reverse the selected label for some reason:Fixes#2275.