public function textarea(array $options, $text = '') { $label = !empty($options['name']) ? ucwords($options['name']) : ''; return '<div class="form-group row"> ' . (empty($label) | substr($label, 0, 1) == '_' ? '' : '<div class="col-md-4 control-label text-right"><label>' . $label . '</label></div>') . '<div class="col-md-6">' . parent::plainTextarea(array_merge(['class' => 'form-control'], $options), $text) . '</div> </div> '; }
/** * Generate a textarea. * * @param array $options * @param string $text * * @return string */ public function textarea(array $options, $text = '') { $label = !empty($options['name']) ? ucwords($options['name']) : ''; return ' <div class="input-field"> ' . parent::plainTextarea(array_merge(['class' => 'materialize-textarea', 'id' => $this->genId($label)], $options), $text) . ' ' . (empty($label) | substr($label, 0, 1) == '_' ? '' : '<label for="' . $this->genId($label) . '">' . $this->inputToRead($label) . '</label>') . ' </div>'; }