Constructor
new mw.widgets.CategoryMultiselectWidget(configopt)
#
Category selector widget. Displays an OO.ui.MenuTagMultiselectWidget and autocompletes with available categories.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
<optional> |
Configuration options Properties
|
Category selector widget.
Extends
Properties
SearchTypestatic
#
Properties:
Name | Type | Description |
---|---|---|
OpenSearch |
Search using action=opensearch |
|
InternalSearch |
Search using action=query |
|
Exists |
Search for existing categories with the exact title |
|
SubCategories |
Search only subcategories |
|
ParentCategories |
Search only parent categories |
Methods
clearInput()
#
createTagItemWidget()
#
findItemFromData()
#
isAllowedData()
#
setSearchTypes(searchTypes)
#
Sets and validates the value of this.searchType
.
Parameters:
Name | Type | Description |
---|---|---|
searchTypes |
Array.<mw.widgets.CategoryMultiselectWidget.SearchType> |
Sets and validates the value of
this.searchType
.