TextArea
TextArea
TextArea
- Full name: \Gibbon\Forms\Input\TextArea
- Parent class: \Gibbon\Forms\Input\Input
Methods
- __construct — Create a textarea with a default height of 6 rows.
- setRows — Set the textarea rows attribute to control the height of the input box.
- setCols — Set the textarea cols attribute to control the width of the input box.
- maxLength — Set a max character count for this textarea.
- placeholder — Set the default text that appears before any text has been entered.
- autosize — Enables the jQuery autosize function for this textarea.
Inherited from Element
Inherited from Input
- setRow
- addValidationOption
- addValidation
- isValidatable
- hasValidation
- getValidationAsJSON
- getValidationOutput
Inherited from InputAttributesTrait
- setName
- getName
- setValue
- getValue
- loadFrom
- loadFromCSV
- setSize
- getSize
- isDisabled
- setDisabled
- getDisabled
- isRequired
- setRequired
- getRequired
- readonly
- setReadonly
- getReadonly
- setTabIndex
- getTabIndex
Inherited from Element
Inherited from BasicAttributesTrait
- setID
- getID
- setTitle
- getTitle
- setClass
- addClass
- removeClass
- getClass
- addData
- getData
- getAttributeString
__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.