Skip to content

Latest commit

 

History

History
26 lines (18 loc) · 845 Bytes

one-way-textarea.md

File metadata and controls

26 lines (18 loc) · 845 Bytes

{{one-way-textarea}}

Basics

The basic invocation of the component looks like:

{{one-way-textarea value update=(action (mut value))}}

This will render an <textarea> element of which the value will be value. When a user starts typing in the textarea value will automatically be updated. You can of course also pass in any other type of action, including string actions.

The examples here pass the value attribute as a positional parameter, but you can also pass value as an ordinary parameter:

{{one-way-textarea value=value update=(action (mut value))}}

Additional options

The one-way-textarea extends from the one-way-input component, please refer to the one-way-input documentation for additional options.