Code for JavaScript enhanced <option> selectors.
More...
|
static | injectJs () |
| Inject needed JavaScript in the page.
|
|
|
| getButton (string $msg, string $source, string $target) |
| Constructs the append button.
|
|
Code for JavaScript enhanced <option> selectors.
- Author
- Niklas Laxström @license GPL-2.0-or-later
Definition at line 16 of file JsSelectToInput.php.
◆ __construct()
MediaWiki\Extension\Translate\Utilities\JsSelectToInput::__construct |
( |
XmlSelect | $select | ) |
|
◆ getButton()
MediaWiki\Extension\Translate\Utilities\JsSelectToInput::getButton |
( |
string | $msg, |
|
|
string | $source, |
|
|
string | $target ) |
|
protected |
Constructs the append button.
- Parameters
-
string | $msg | Message key. |
string | $source | Html id. |
string | $target | Html id. |
- Returns
- string
Definition at line 79 of file JsSelectToInput.php.
◆ getHtmlAndPrepareJS()
MediaWiki\Extension\Translate\Utilities\JsSelectToInput::getHtmlAndPrepareJS |
( |
| ) |
|
Returns the whole input element and injects needed JavaScript.
- Returns
- string Html code.
Definition at line 58 of file JsSelectToInput.php.
◆ getMessage()
MediaWiki\Extension\Translate\Utilities\JsSelectToInput::getMessage |
( |
| ) |
|
◆ getSourceId()
MediaWiki\Extension\Translate\Utilities\JsSelectToInput::getSourceId |
( |
| ) |
|
◆ getTargetId()
MediaWiki\Extension\Translate\Utilities\JsSelectToInput::getTargetId |
( |
| ) |
|
◆ injectJs()
static MediaWiki\Extension\Translate\Utilities\JsSelectToInput::injectJs |
( |
| ) |
|
|
static |
◆ setMessage()
MediaWiki\Extension\Translate\Utilities\JsSelectToInput::setMessage |
( |
string | $message | ) |
|
◆ setTargetId()
MediaWiki\Extension\Translate\Utilities\JsSelectToInput::setTargetId |
( |
string | $id | ) |
|
◆ $buttonId
MediaWiki\Extension\Translate\Utilities\JsSelectToInput::$buttonId |
|
protected |
◆ $msg
MediaWiki\Extension\Translate\Utilities\JsSelectToInput::$msg = 'translate-jssti-add' |
|
protected |
◆ $select
MediaWiki\Extension\Translate\Utilities\JsSelectToInput::$select |
|
protected |
◆ $sourceId
MediaWiki\Extension\Translate\Utilities\JsSelectToInput::$sourceId |
|
protected |
◆ $targetId
MediaWiki\Extension\Translate\Utilities\JsSelectToInput::$targetId |
|
protected |
The documentation for this class was generated from the following file: