blob: 36f63c1532ddd131597ba728f29f97eaaa543c0b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
<?php
namespace MediaWiki\Widget;
/**
* User input widget.
*
* @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
* @license MIT
*/
class UserInputWidget extends \OOUI\TextInputWidget {
/**
* @param array $config Configuration options
*/
public function __construct( array $config = [] ) {
parent::__construct( $config );
// Initialization
$this->addClasses( [ 'mw-widget-userInputWidget' ] );
}
protected function getJavaScriptClassName() {
return 'mw.widgets.UserInputWidget';
}
public function getConfig( &$config ) {
$config['$overlay'] = true;
return parent::getConfig( $config );
}
}
|