TextArea

TextArea

TextArea

Methods

Inherited from Element
Inherited from Input
Inherited from InputAttributesTrait
Inherited from Element
Inherited from BasicAttributesTrait

__construct

Create a textarea with a default height of 6 rows.

TextArea::__construct( string $name )

setRows

Set the textarea rows attribute to control the height of the input box.

TextArea::setRows( integer $count ): self

Returns Self: This method can be chained.


setCols

Set the textarea cols attribute to control the width of the input box.

TextArea::setCols( integer $count ): self

Returns Self: This method can be chained.


maxLength

Set a max character count for this textarea.

TextArea::maxLength( string $value = '' ): self

Returns Self: This method can be chained.


placeholder

Set the default text that appears before any text has been entered.

TextArea::placeholder( string $value = '' ): self

Returns Self: This method can be chained.


autosize

Enables the jQuery autosize function for this textarea.

TextArea::autosize( $autosize = true ): self

Returns Self: This method can be chained.