Expand all

ve.ui.MWCategoryInputWidget

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:
Name Type Attributes Description
$overlay jQuery optional

Overlay to render dropdowns in

api mw.Api optional

API object to use, uses Target#getContentApi if not specified

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

Source:

Returns:

Menu item widget to be shown

Type
OO.ui.MenuOptionWidget
Take a category name and turn it into a menu item widget, following redirects.

getLookupCacheDataFromResponse() #

getLookupMenuOptionsFromData() #

Events

choose(item) #

A category was chosen

Parameters:

Name Type Description
item OO.ui.MenuOptionWidget

Chosen item

Source:
A category was chosen