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
I'd like to be able to set the triggerValue of a MdSelect. The use case is, that I wish to display a triggerValue which is different from the MdOption's textContent (which is automatically taken).
Therefore it would be great, if triggerValue would be an @Input of MdSelect.
What is the current behavior?
triggerValue is a readonly property of MdSelect. Consequently there is no possibility to manually set a triggerValue (if there is some, let me know!).
What is the use-case or motivation for changing an existing behavior?
I use a MdOption to set a filter for some search. It shows the option's values and their count of occurences. When an option is selected, the count of occurences will appear in the MdSelect's triggerValue, but without styling, therefore looking fairly misplaced.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 4.2.2
Material: 2.0.0-beta.6
Is there anything else we should know?
If this is a feature you consider to add, I could try to implement it and open a PR.
And of course, big thanks for this great project! I was also using the AngularJS version of Material and it has always been a pleasure to use it!!
The text was updated successfully, but these errors were encountered:
RobYed
changed the title
triggerValue of MdSelect as @Input
triggerValue of MdSelect as @Input
Jun 22, 2017
Bug, feature request, or proposal:
feature request
What is the expected behavior?
I'd like to be able to set the
triggerValue
of aMdSelect
. The use case is, that I wish to display atriggerValue
which is different from theMdOption
'stextContent
(which is automatically taken).Therefore it would be great, if
triggerValue
would be an@Input
ofMdSelect
.What is the current behavior?
triggerValue
is a readonly property ofMdSelect
. Consequently there is no possibility to manually set atriggerValue
(if there is some, let me know!).What is the use-case or motivation for changing an existing behavior?
I use a
MdOption
to set a filter for some search. It shows the option's values and their count of occurences. When an option is selected, the count of occurences will appear in theMdSelect
'striggerValue
, but without styling, therefore looking fairly misplaced.Which versions of Angular, Material, OS, TypeScript, browsers are affected?
Angular: 4.2.2
Material: 2.0.0-beta.6
Is there anything else we should know?
If this is a feature you consider to add, I could try to implement it and open a PR.
And of course, big thanks for this great project! I was also using the AngularJS version of Material and it has always been a pleasure to use it!!
The text was updated successfully, but these errors were encountered: