Search input widget.
More...
Inherits MediaWiki\Widget\TitleInputWidget.
Search input widget.
- Note
- 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
-
MIT
Definition at line 13 of file SearchInputWidget.php.
◆ __construct()
MediaWiki\Widget\SearchInputWidget::__construct |
( |
array | $config = [] | ) |
|
- Parameters
-
array | $config | Configuration options
- bool|null $config['performSearchOnClick'] If true, the script will start a search whenever a user hits a suggestion. If false, the text of the suggestion is inserted into the text field only (default: true)
- string $config['dataLocation'] Where the search input field will be used (header or content, default: header)
|
Reimplemented from MediaWiki\Widget\TitleInputWidget.
Definition at line 34 of file SearchInputWidget.php.
◆ getConfig()
MediaWiki\Widget\SearchInputWidget::getConfig |
( |
& | $config | ) |
|
◆ getInputElement()
MediaWiki\Widget\SearchInputWidget::getInputElement |
( |
| $config | ) |
|
|
protected |
◆ getJavaScriptClassName()
MediaWiki\Widget\SearchInputWidget::getJavaScriptClassName |
( |
| ) |
|
|
protected |
◆ $dataLocation
string MediaWiki\Widget\SearchInputWidget::$dataLocation = 'header' |
|
protected |
◆ $highlightFirst
bool MediaWiki\Widget\SearchInputWidget::$highlightFirst = false |
|
protected |
◆ $performSearchOnClick
bool MediaWiki\Widget\SearchInputWidget::$performSearchOnClick = true |
|
protected |
◆ $showDescriptions
bool MediaWiki\Widget\SearchInputWidget::$showDescriptions = false |
|
protected |
◆ $validateTitle
bool MediaWiki\Widget\SearchInputWidget::$validateTitle = false |
|
protected |
The documentation for this class was generated from the following file: