MediaWiki  1.34.0
PendingTextInputWidget.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\Widget;
4 
5 use OOUI\TextInputWidget;
6 
10 class PendingTextInputWidget extends TextInputWidget {
11 
15  public function __construct( array $config = [] ) {
16  $config = array_merge( [
17  'disabled' => true,
18  ], $config );
19 
20  // Parent constructor
21  parent::__construct( $config );
22 
23  // Initialization
24  $this->input->addClasses( [ 'mw-widgets-pendingTextInputWidget oo-ui-pendingElement-pending' ] );
25  }
26 }
MediaWiki\Widget\PendingTextInputWidget
Text input widget that displays pending animation.
Definition: PendingTextInputWidget.php:10
MediaWiki\Widget\PendingTextInputWidget\__construct
__construct(array $config=[])
Definition: PendingTextInputWidget.php:15
MediaWiki\Widget
Definition: CheckMatrixWidget.php:3
MediaWiki\$config
Config $config
Definition: MediaWiki.php:43