Try Install Learn Blog API Packages GitHub
Pages
mint-ui

Search
Basic information
Entities
Versions
Dependencies
mint-color 0.9.0 <= v < 1.0.0

Ui.Textarea

A textarea component.

States

currentValue
:
Maybe(String)
=
Maybe::Nothing

The current value of the input.

timeoutId
:
Number
=
0

The ID of the last timeout.

Properties

behavior
:
String
=
"resize-both"

The behavior of the textarea, can be: - resize-horizontal - resize-vertical - resize-both - static - grow

disabled
:
Bool
=
false

Whether or not the textarea is disabled.

inputDelay
:
Number
=
0

The number of milliseconds to delay the onChange event.

invalid
:
Bool
=
false

Whether or not the textarea is invalid.

onBlur
:
Function(Promise(Void))
=
Promise.never

The blur event handler.

onChange
:
Function(String, Promise(Void))
=
Promise.never1

The change event handler.

onFocus
:
Function(Promise(Void))
=
Promise.never

The focus event handler.

onKeyDown
:
Function(Html.Event, Promise(Void))
=
Promise.never1

The keydown event handler.

onKeyUp
:
Function(Html.Event, Promise(Void))
=
Promise.never1

The keyup event handler.

onMouseDown
:
Function(Html.Event, Promise(Void))
=
Promise.never1

The mousedown event handler.

onMouseUp
:
Function(Html.Event, Promise(Void))
=
Promise.never1

The mouseup event handler.

onTabIn
:
Function(Promise(Void))
=
Promise.never

The event handler when the user tabs into the input.

onTabOut
:
Function(Promise(Void))
=
Promise.never

The event handler when the user tabs out of the input.

placeholder
:
String
=
""

The placeholder to display if the value is empty.

rows
:
Number
=
5
size
:
Ui.Size
=
Ui.Size::Inherit

The size of the textarea.

value
:
String
=
""

The value of the textarea.

Functions

focus
:
Promise(Void)

Focuses the textarea.

handleChange
(
event
:
Html.Event
)

Handles the input and change events.

render
:
Html

Renders the textarea.