-
Notifications
You must be signed in to change notification settings - Fork 4.7k
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
MultiSelect label parameter #2548
Comments
This would be a useful one. I would suggest taking it a step further and add a "max items before cut off" value. For example, if n items are selected, the label parameter will take effect so we can see something like "5 Selected", "6 Selected", if the threshold is set at 4 items. |
3 new attribute added to multiselect component for this issue. After 4.0.0-Final multiselect component will have displaySelectedLabel attribute for deciding to show the defaultLabel or with new maxItems attribute.maxItems attribute have a default value of 3. After 3 selections container displays a message like "4 items selected". And you can specify your own message for this with new selectedItemsLabel attribute which is by default have a value of "{0} items selected". @Helayxa @codechamploo |
@Mrtcndkn @cagataycivici Any help is appreciated. Thanks |
FYI: the |
I'm submitting a ... (check one with "x")
Expected behavior
Add a parameter for the MultiSelect to set a constant label instead of the selected data.
What is the motivation / use case for changing the behavior?
If the selected data are too long, the MultiSelect becomes really awful and barely readable...
The text was updated successfully, but these errors were encountered: