mw.widgets.TitleSearchWidget

Title search widget.

Extends

Constructor

new mw.widgets.TitleSearchWidget(config) #

Create an mw.widgets.TitleSearchWidget object.

Parameters:

Name Type Attributes Description
config Object optional

Configuration options

Mixes in:
Source:

Methods

getRequestCacheDataFromResponse() #

isReadOnly() → {boolean} #

Check if the widget is read-only.

Source:

Returns:

Type
boolean
Check if the widget is read-only.

onTitleSearchResultsChoose(item) #

Handle choose events from the result widget.

Parameters:

Name Type Description
item OO.ui.OptionWidget

Chosen item

Source:
Handle choose events from the result widget.

setReadOnly(readOnly) → {mw.widgets.TitleSearchWidget} #

Set the read-only state of the widget.

Parameters:

Name Type Description
readOnly boolean

Make input read-only

Source:

Returns:

The widget, for chaining

Type
mw.widgets.TitleSearchWidget
Set the read-only state of the widget.