5 ms·
200 checkboxes make about as much sense as a 200-item dropdown. Neither is manageable. The multi-select dropdown is additionally hard to check for the selection
by nine_k 5y ago
200 checkboxes make about as much sense as a 200-item dropdown. Neither is manageable. The multi-select dropdown is additionally hard to check for the selections made.
An input box with pill-style auto-completion (see e.g. the tags control on Stackoverflow) would be a reasonable alternative.
Another, larger alternative is the typical two-lists control, with selected items moved from the source list to the target list; this idiom was widely used in Windows since 1990s. It's not mobile-friendly though.
- egeozcan 5y ago> 200 checkboxes make about as much sense as a 200-item dropdown. Neither is manageable. Multi-select is okay there, apart from the problems I mentioned above: https://jsfiddle.net/z0Ltxh47/2/ https://jsfiddle.net/z0Ltxh47/2/ . I can navigate to i19 with a few key strokes. Only if it were then possible to easily select a1... > An input box with pill-style auto-completion (see e.g. the tags control on Stackoverflow) would be a reasonable alternative And we are back at implementing our custom controls again.
- nine_k 5y ago> And we are back at implementing our custom controls again. Sadly, yes. Not everything was anticipated at the times of Netscape 2. HTML5 added a number of native controls, like video players and calendars. I wish a better "native" multi-select alternative surfaced, too. OTOH I suppose that browsers are going to blur the line between "native" controls and web components and such.
- 8n4vidtmkvmk 5y agoI think there's an initiative to improve these... but I can't find it at the moment. Googling anything with "native" just turns up react-native crap.
- derefr 5y ago> And we are back at implementing our custom controls again. Are we? Why wouldn't we just push OS vendors to add "input box with pill-style auto-completion" as a native toolkit widget, and then have browsers expose it? The OS vendors have proven willing to add stuff like native OS date/time/number-picker widgets, so why not this one?
- dillondoyle 5y agoI like the pattern of drop downs where you can type to filter. But I've found there isn't great UI in that it's not super obvious you can type.
- bil7 5y agoI was actually implementing exactly this today in Angular and went with a <mat-autocomplete> https://v5.material.angular.io/components/autocomplete/overview https://v5.material.angular.io/components/autocomplete/overv...
- jcelerier 5y agoAn input box like SO's isn't discoverable though, it's not good for things that you "want but don't know exist yet"