palantir / blueprint

A React-based UI toolkit for the web
https://blueprintjs.com/
Apache License 2.0
20.74k stars 2.18k forks source link

Show selected items count in Multiselect #4392

Closed arunmmanoharan closed 4 years ago

arunmmanoharan commented 4 years ago

Environment

Feature request

When I select more than three items in multiselect, I want to display "4 items selected" instead of tags.

Examples

https://projects.skratchdot.com/react-bootstrap-multiselect/

Check how optgroups dropdown works.

arunmmanoharan commented 4 years ago

@adidahiya @giladgray Any advices?

arunmmanoharan commented 4 years ago

Fixed it using QueryList. Thank you.

adidahiya commented 4 years ago

Yeah I think QueryList is the way to go if you're trying to achieve some kind of selection UI which is outside our design system.