Extends
Constructor
new ve.ui.MWCategoryInputWidget(categoryWidget, [config])
#
Creates an ve.ui.MWCategoryInputWidget object.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
categoryWidget |
ve.ui.MWCategoryWidget | ||
config |
Object |
optional |
Configuration options Properties: |
- Mixes in:
- Source:
Creates an ve.ui.MWCategoryInputWidget object.
Methods
getCategoryWidgetFromName(name) → {OO.ui.MenuOptionWidget}
#
Take a category name and turn it into a menu item widget, following redirects.
Parameters:
Name | Type | Description |
---|---|---|
name |
string | Category name |
Returns:
Menu item widget to be shown
Take a category name and turn it into a menu item widget, following redirects.
getLookupCacheDataFromResponse()
#
getLookupMenuOptionsFromData()
#
getLookupRequest()
#
onLookupMenuChoose()
#
Events
choose(item)
#
A category was chosen