Class: Textarea

Textarea(placeholder, minLength, maxLength)

Textarea element.

Constructor

new Textarea(placeholder, minLength, maxLength)

Parameters:
Name Type Description
placeholder string
minLength string | number min number of characters
maxLength string | number max number of characters
Source:

Classes

Textarea

Members

value

Gets value.
Source:

value

Sets value.
Source:

Methods

disable() → {Textarea}

Sets as read-only.
Source:
Returns:
this
Type
Textarea

enable() → {Textarea}

Sets as editable field.
Source:
Returns:
this
Type
Textarea

onChange(fun) → {Textarea}

Binds a function called on change event.
Parameters:
Name Type Description
fun function
Source:
Returns:
this
Type
Textarea

onInput(fun) → {Textarea}

Binds a function called on input event.
Parameters:
Name Type Description
fun function
Source:
Returns:
this
Type
Textarea