Search input widget.
More...
Search input widget.
- Note
- 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
-
MIT
Definition at line 11 of file SearchInputWidget.php.
◆ __construct()
MediaWiki\Widget\SearchInputWidget::__construct |
( |
array | $config = [] | ) |
|
- Parameters
-
array | $config | Configuration options
- int|null $config['pushPending'] Whether the input should be visually marked as "pending", while requesting suggestions (default: false)
- 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 29 of file SearchInputWidget.php.
◆ getConfig()
MediaWiki\Widget\SearchInputWidget::getConfig |
( |
& | $config | ) |
|
◆ getInputElement()
MediaWiki\Widget\SearchInputWidget::getInputElement |
( |
| $config | ) |
|
|
protected |
◆ getJavaScriptClassName()
MediaWiki\Widget\SearchInputWidget::getJavaScriptClassName |
( |
| ) |
|
|
protected |
◆ $dataLocation
MediaWiki\Widget\SearchInputWidget::$dataLocation = 'header' |
|
protected |
◆ $highlightFirst
MediaWiki\Widget\SearchInputWidget::$highlightFirst = false |
|
protected |
◆ $performSearchOnClick
MediaWiki\Widget\SearchInputWidget::$performSearchOnClick = true |
|
protected |
◆ $pushPending
MediaWiki\Widget\SearchInputWidget::$pushPending = false |
|
protected |
◆ $validateTitle
MediaWiki\Widget\SearchInputWidget::$validateTitle = false |
|
protected |
The documentation for this class was generated from the following file: