Extends
Constructor
new mw.widgets.CategoryMultiselectWidget([config])
#
Create an instance of mw.widgets.CategoryMultiselectWidget
.
Parameters:
Name | Type | Attributes | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
optional |
Configuration options Properties:
|
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
.