new mw.widgets.TitleSearchWidget(configopt)
#
Creates an mw.widgets.TitleSearchWidget object.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
config |
Object |
<optional> |
Configuration options |
Creates an mw.widgets.TitleSearchWidget object.
Extends
Methods
getQueryValue()
#
getRequest()
#
getRequestCacheDataFromResponse()
#
getRequestQuery()
#
isReadOnly() → {boolean}
#
Check if the widget is read-only.
Returns:
- Type
- boolean
Check if the widget is read-only.
onQueryChange()
#
onTitleSearchResultsChoose(item)
#
Handle choose events from the result widget.
Parameters:
Name | Type | Description |
---|---|---|
item |
OO.ui.OptionWidget | Chosen item |
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 |
Returns:
The widget, for chaining
Set the read-only state of the widget.