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>';
    }
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>';
    }
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>' ; }
Generate a textarea.

@param array  $options
@param string $text

@return string
Generate a textarea .