Logo FS-Skia-UI

TextArea Module

Builders for the `TextArea` control — a multi-line editable text field (the wrapping counterpart to `TextBox`).

Functions and values

Function or value Description

create arg1

Full Usage: create arg1

Parameters:
    arg0 : Attr<'msg> list

Returns: Control<'msg>
Type parameters: 'msg

Build a `TextArea` from its attributes; pair with `TextArea.value` and `onChanged`. The typed `Props` front door (`FS.Skia.UI.Controls.Typed`) is the recommended authoring path.

arg0 : Attr<'msg> list
Returns: Control<'msg>

onChanged arg1

Full Usage: onChanged arg1

Parameters:
    arg0 : string -> 'msg

Returns: Attr<'msg>
Type parameters: 'msg

Emit a `'msg` carrying the edited `string` on each `TextArea` change (`Attr.onChanged`).

arg0 : string -> 'msg
Returns: Attr<'msg>

value arg1

Full Usage: value arg1

Parameters:
    arg0 : string

Returns: Attr<'msg>
Type parameters: 'msg

Set the current multi-line text in a `TextArea` (`Attr.value`; a controlled `string` reconciled via `onChanged`).

arg0 : string
Returns: Attr<'msg>

Type something to start searching.