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
[Select] Custom text for multiple selected values #6218
What is the use-case or motivation for changing an existing behavior?
To our customers it is more useful to see how many values are selected (whether or not all are selected), rather than seeing only the first part of the text of the first selected item.
Which versions of Angular, Material, OS, TypeScript, browsers are affected?
I think this is somewhat different. Does it really solve my issue if I can specify how the selected values should be rendered? Still they will be concatenated or do I get it wrong?
Yeah I see the distinction now, good call. I know I'd seen a similar request (#2722 (comment)) but it doesn't look like there's issue tracking for it yet!
@willshowell: Any ideas on the implementation? What would fit best? Should the text be included by material and then i18n-ized or should we have a callback?
I feel like a callback similar to autocomplete's displayWith is very comparable and makes sense for this. But if the default changes to "x, y, and 4 others" then it would certainly require internationalization.
Activity
willshowell commentedon Aug 2, 2017
Duplicate of #2275
davidreher commentedon Aug 2, 2017
I think this is somewhat different. Does it really solve my issue if I can specify how the selected values should be rendered? Still they will be concatenated or do I get it wrong?
willshowell commentedon Aug 2, 2017
Yeah I see the distinction now, good call. I know I'd seen a similar request (#2722 (comment)) but it doesn't look like there's issue tracking for it yet!
davidreher commentedon Aug 2, 2017
@willshowell: Any ideas on the implementation? What would fit best? Should the text be included by material and then i18n-ized or should we have a callback?
willshowell commentedon Aug 2, 2017
I feel like a callback similar to autocomplete's
displayWithis very comparable and makes sense for this. But if the default changes to "x, y, and 4 others" then it would certainly require internationalization.feat(select): custom text for multiple selected values
feat(select): custom text for multiple selected values
feat(select): custom text for multiple selected values
davidreher commentedon Aug 8, 2017
will be fixed by #3341
angular-automatic-lock-bot commentedon Sep 6, 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.