Extends
Constructor
new mw.widgets.SearchInputWidget([config])
#
Create a mw.widgets.SearchInputWidget object.
Parameters:
Name | Type | Attributes | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
config |
Object |
optional |
Configuration options Properties:
|
Methods
cleanUpValue()
#
- Inherited from:
- Source:
focus()
#
- Inherited from:
- Source:
getInputElement()protected
#
getLookupCacheDataFromResponse()
#
getLookupMenuOptionsFromData()
#
getLookupRequest()
#
- Inherited from:
- Source:
getOptionsFromData()
#
getQueryValue()
#
- Inherited from:
- Source:
getSuggestionsPromise()
#
onChange()
#
onIndicatorMouseDown()
#
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 |
Handle menu item 'choose' event, updating the text input value to the value of the clicked item.
setNamespace()
#
- Inherited from:
- Source:
setReadOnly()
#
updateSearchIndicator()
#
Update the 'clear' indicator displayed on type: 'search' text fields, hiding it when the field is already empty or when it's not editable.
Update the 'clear' indicator displayed on type: 'search' text fields, hiding it when the field is already empty or when it's not editable.