Expand all

mw.widgets.TitleInputWidget

Title input widget.

Extends

Constructor

new mw.widgets.TitleInputWidget([config]) #

Create an mw.widgets.TitleInputWidget object.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Properties:
Name Type Attributes Default Description
suggestions boolean optional
true

Display search suggestions

validate RegExp | function | string optional

Perform title validation

Mixes in:
Source:

Methods

getLookupCacheDataFromResponse() #

getLookupMenuOptionsFromData() #

onLookupMenuChoose(item) #

Handle menu item 'choose' event, updating the text input value to the value of the clicked item.

TODO: Replace this with an override of onLookupMenuChoose()

Parameters:

Name Type Description
item OO.ui.MenuOptionWidget

Selected item

Source:
Handle menu item 'choose' event, updating the text input value to the value of the clicked item.