3 * MediaWiki Widgets \96 UserInputWidget class.
5 * @copyright 2011-2015 MediaWiki Widgets Team and others; see AUTHORS.txt
6 * @license The MIT License (MIT); see LICENSE.txt
8 namespace MediaWiki\Widget
;
10 use OOUI\TextInputWidget
;
15 class UserInputWidget
extends TextInputWidget
{
17 * @param array $config Configuration options
19 public function __construct( array $config = array() ) {
21 parent
::__construct( array_merge( $config, array( 'infusable' => true ) ) );
24 $this->addClasses( array( 'mw-widget-userInputWidget' ) );
27 protected function getJavaScriptClassName() {
28 return 'mw.widgets.UserInputWidget';