Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

triggerValue of MdSelect as @Input #5294

Closed
RobYed opened this issue Jun 22, 2017 · 3 comments
Closed

triggerValue of MdSelect as @Input #5294

RobYed opened this issue Jun 22, 2017 · 3 comments

Comments

@RobYed
Copy link

RobYed commented 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 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!!

@RobYed RobYed changed the title triggerValue of MdSelect as @Input triggerValue of MdSelect as @Input Jun 22, 2017
@willshowell
Copy link
Contributor

This seems kinda like #2275 (with PR at #3341).

@RobYed
Copy link
Author

RobYed commented Jun 22, 2017

Yeah, that one would fix my issue. Thanks!

@RobYed RobYed closed this as completed Jun 22, 2017
@angular-automatic-lock-bot
Copy link

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.

@angular-automatic-lock-bot angular-automatic-lock-bot bot locked and limited conversation to collaborators Sep 5, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants