Page MenuHomePhabricator

Allow TagMultiselectWidget to be used in an HTMLForm
Closed, ResolvedPublic3 Estimated Story Points


Ahead of T275470: Add option to allow specific user groups to vote to 'Basic options' list, we need to use a TagMultiselectWidget in an HTMLForm. This currently isn't possible, and it's easy to imagine that it could be useful for more use cases than just our current one.

What needs to be done:

  • Implement HTMLTagMultiselectField
  • Make MediaWiki's PHP widget TagMultiselectWidget instantiable (it's currently abstract; there isn't an OOUI PHP TagMultiselectWidget)
  • Make a small wrapper JS widget for OO.ui.TagMultiselectWidget that adds the hidden field needed for HTMLForm submission

Event Timeline

Niharika set the point value for this task to 3.Mar 24 2021, 4:50 PM

Change 672700 had a related patch set uploaded (by STran; author: STran):
[mediawiki/core@master] Add HTMLTagMultiselectField

Change 672700 merged by jenkins-bot:
[mediawiki/core@master] Add HTMLTagMultiselectField

dom_walden added a subscriber: dom_walden.

I don't believe this widget is used anywhere yet, so I will wait to test it on T275470.