MediaWiki REL1_35
PendingTextInputWidget.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Widget;
4
5use OOUI\TextInputWidget;
6
10class 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}
Text input widget that displays pending animation.