mw.widgets.TitleSearchWidget(configopt)

new mw.widgets.TitleSearchWidget(configopt) #

Creates an mw.widgets.TitleSearchWidget object.

Parameters:

Name Type Attributes Description
config Object <optional>

Configuration options

Mixes In:
Source:
Creates an mw.widgets.TitleSearchWidget object.

Extends

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.