We have a custom implementation in VE-MW settings for adding categories, but this should be genericised and improved. Phabricator's widget is a pretty good implementation to copy:
Description
Details
Subject | Repo | Branch | Lines +/- | |
---|---|---|---|---|
CapsuleMultiSelectWidget: Introduce | oojs/ui | master | +1 K -11 |
Event Timeline
Apparently has a design proposed way back. https://trello.com/c/eAl3YdVu/32-capsule-controls
Phabricator's widget is a pretty good implementation to copy
Except for the part where it only shows you 5 possibilities, so if you want to browse the available options you're out of luck. When there's a known list of values I'd rather see something that displays the full (filtered) list in the popup instead of the top 5.
Yes, poorly-configured widgets suck. However, I don't see anyone suggesting we should configure it the same way in real-world applications as Phabricator's maintainers have.
I needed one of these for my other job this week. Selectize.js is an outstanding choice if we can get over the NIH.
There's also select2.
Note that select2 is already being used in 2 extensions:
Semantic Forms: rESFO396bacb6bd5d555821c274760993b54d5d32dbf0
fundraising?: rWFDB8ff1cd8e1c1b1257a3c01e268799737207dd8f0b
is it worth adding to MediaWiki core?
MediaWiki core has Chosen, which is yet another implementation of the same thing. It is used at least by some OpenStackManager stuff.
Change 224966 had a related patch set uploaded (by Anomie):
Add a capsule select widget