3 namespace MediaWiki\Widget
;
8 * @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
11 class UserInputWidget
extends \OOUI\TextInputWidget
{
14 * @param array $config Configuration options
16 public function __construct( array $config = [] ) {
17 parent
::__construct( $config );
20 $this->addClasses( [ 'mw-widget-userInputWidget' ] );
23 protected function getJavaScriptClassName() {
24 return 'mw.widgets.UserInputWidget';
27 public function getConfig( &$config ) {
28 $config['$overlay'] = true;
29 return parent
::getConfig( $config );