Related Objects
- Mentioned In
- T108491: Let you specify that a TagMultiselectWidget has a fixed order
T108490: Let you drag items in a CapsuleMultiselectWidget to re-order them
T135341: Convert DropdownInputWidget of Special:ActiveUsers to a multi-select widget
T117782: Implement CheckboxMultiselectWidget (and CheckboxMultiselectInputWidget) - Mentioned Here
- T183299: Replace and deprecate CapsuleMultiselectWidget
T117782: Implement CheckboxMultiselectWidget (and CheckboxMultiselectInputWidget)
Event Timeline
I thought about this quite a bit when working on T117782. I feel that the current CapsuleMultiselectWidget is unsalvageable, it seemed very difficult to reconcile a sensible API for a multiselect widget with allowing the user to add new options at will and using the dropdown menu as the master list of available ones.
If anyone plans to work on this, I'd suggest:
- Scrap the current CapsuleMultiselectWidget/CapsuleItemWidget entirely, except for the styling
- Implement two new pairs of classes:
- CapsuleGroupWidget/CapsuleWidget, which would allow users to insert arbitrary options, and which would support the fancy popup things
- CapsuleMultiselectWidget/CapsuleMultioptionWidget, which would allow users to select some predefined options from many
This came up before the design and implementation of TagMultiselectWidget and MenuTagMultiselectWidget, which are more or less answering the basic request. Unless there's an additional request here, I think we can close this task as either declined or completed.
As per @Mooeypoo above. Use TagMultiselect- or MenuTagMultiselectWidget. Declined for CapsuleMultiselectWidget as per T183299: Replace and deprecate CapsuleMultiselectWidget.