Search input widget.
More...
Search input widget.
Definition at line 13 of file SearchInputWidget.php.
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: true) |
boolean | 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) |
Definition at line 31 of file SearchInputWidget.php.
References MediaWiki\$config.
MediaWiki\Widget\SearchInputWidget::getConfig |
( |
& |
$config | ) |
|
MediaWiki\Widget\SearchInputWidget::getJavaScriptClassName |
( |
| ) |
|
|
protected |
MediaWiki\Widget\SearchInputWidget::$dataLocation = 'header' |
|
protected |
MediaWiki\Widget\SearchInputWidget::$highlightFirst = false |
|
protected |
MediaWiki\Widget\SearchInputWidget::$performSearchOnClick = true |
|
protected |
MediaWiki\Widget\SearchInputWidget::$pushPending = false |
|
protected |
MediaWiki\Widget\SearchInputWidget::$validateTitle = false |
|
protected |
The documentation for this class was generated from the following file: