���ѧۧݧ�ӧ�� �ާ֧ߧ֧էا֧� - ���֧էѧܧ�ڧ��ӧѧ�� - /home/rickpfrv/wiki.craftaro.com/vendor/oojs/oojs-ui/php/widgets/MultilineTextInputWidget.php
���ѧ٧ѧ�
<?php namespace OOUI; /** * Input widget with a text field. */ class MultilineTextInputWidget extends TextInputWidget { /** * Allow multiple lines of text. * * @var bool */ protected $multiline = true; /** * @param array $config Configuration options * - int $config['rows'] If multiline, number of visible lines in textarea */ public function __construct( array $config = [] ) { // Config initialization $config = array_merge( [ 'readOnly' => false, 'autofocus' => false, 'required' => false, ], $config ); // Parent constructor parent::__construct( $config ); if ( $config['rows'] ?? null ) { $this->input->setAttributes( [ 'rows' => $config['rows'] ] ); } } /** @inheritDoc */ protected function getInputElement( $config ) { return new Tag( 'textarea' ); } /** @inheritDoc */ public function getConfig( &$config ) { $rows = $this->input->getAttribute( 'rows' ); if ( $rows !== null ) { $config['rows'] = $rows; } return parent::getConfig( $config ); } }
| ver. 1.4 |
Github
|
.
| PHP 7.4.33 | ���֧ߧ֧�ѧ�ڧ� ����ѧߧڧ��: 0 |
proxy
|
phpinfo
|
���ѧ����ۧܧ�