The model attribute value will be used as the content in the textarea.
public textarea ( array $options = [] ) | ||
$options | array | the tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using [[Html::encode()]]. If you set a custom `id` for the textarea element, you may need to adjust the [[$selectors]] accordingly. |
/** * @inheritdoc */ public function textarea($options = []) { $this->initPlaceholder($options); Html::addCssClass($options, $this->addClass); $this->initDisability($options); return parent::textarea($options); }
public function textarea($options = []) { if (!isset($options['rows'])) { $options['rows'] = 5; } return parent::textarea($options); }
/** * @inheritdoc */ public function textarea($options = []) { $this->options['tag'] = 'md-input-container'; $options['title'] = $this->model->getAttributeLabel($this->attribute); $options['ng-model'] = ArrayHelper::remove($options, 'ng-model', 'data.' . $this->attribute); return parent::textarea($options); }
/** * @inheritdoc */ public function textarea($options = []) { Html::addCssClass($options, 'materialize-textarea'); return parent::textarea($options); }
/** * @inheritdoc */ public function textarea($options = []) { $options = array_merge($this->inputOptions, $options); $this->_setWrapperOptions($options, 'textarea'); $this->_setIconOptions($options); $this->_setTooltipOptions($options); if (ArrayHelper::remove($options, 'resizable') || $this->resizable) { Html::addCssClass($this->wrapperOptions, 'textarea-resizable'); } if (ArrayHelper::remove($options, 'expandable') || $this->expandable) { Html::addCssClass($this->wrapperOptions, 'textarea-expandable'); } Html::addCssClass($options, 'custom-scroll'); return parent::textarea($options); }
/** * @inheritdoc */ public function textarea($options = [], $enclosedByLabel = true) { Html::addCssClass($options, 'materialize-textarea'); return parent::textarea($options, $enclosedByLabel); }
/** * Renders a text area. * The model attribute value will be used as the content in the textarea. * * @param array $options the tag options in terms of name-value pairs. These will be rendered as * the attributes of the resulting tag. The values will be HTML-encoded using [[Html::encode()]]. * @return ActiveField object */ public function textarea($options = []) { $this->initPlaceholder($options); return parent::textarea($options); }
/** * @inheritdoc */ public function textarea($options = []) { $options['title'] = $options['placeholder'] = $this->model->getAttributeLabel($this->attribute); $options['ng-model'] = 'data.' . $this->attribute; return parent::textarea($options); }
/** * @inheritdoc */ public function textarea($options = []) { Html::addCssClass($this->options, 'form-group--textarea-input'); $options = array_merge($this->inputOptions, $options); $options['title'] = $this->model->getAttributeLabel($this->attribute); $options['ng-model'] = ArrayHelper::remove($options, 'ng-model', sprintf('data.%s', $this->attribute)); $this->beforeRenderInput(__METHOD__, $options); return parent::textarea($options); }