PendingTextInputWidget.php 542 B

123456789101112131415161718192021222324252627
  1. <?php
  2. namespace MediaWiki\Widget;
  3. use OOUI\TextInputWidget;
  4. /**
  5. * Text input widget that displays pending animation.
  6. */
  7. class PendingTextInputWidget extends TextInputWidget {
  8. /**
  9. * @param array $config Configuration options
  10. */
  11. public function __construct( array $config = [] ) {
  12. $config = array_merge( [
  13. 'disabled' => true,
  14. ], $config );
  15. // Parent constructor
  16. parent::__construct( $config );
  17. // Initialization
  18. $this->input->addClasses( [ 'mw-widgets-pendingTextInputWidget oo-ui-pendingElement-pending' ] );
  19. }
  20. }