<textarea>
A multi-line text field, like a <textarea>. For a single line, use <input>.
Usage
src/app/message.ts
Import LYNX_ELEMENTS in your component (see Elements).
Lynx draws a field with no border, as tall as its text. Size and outline it with classes, such as class="h-[120px] rounded-lg border border-zinc-200 px-3", or with style.
Attributes
Plus the common attributes, such as id and class.
Bind the value
- Bind
valueas[value]. iOS and Android have novalueattribute. - AngularLynx sets the text for you, with
setValue, or asdefault-valuebefore the field is on screen. [attr.value]skips that and doesn't work.
Events
Read the payload from $event.detail. Angular types $event for each event: see Element events.
Plus the common events, such as bindtap.
Methods
These UI methods (Glossary) control the field from code. Call them with invoke() on the element (see Call element methods). A call from a handler returns nothing: to read a result, call invoke() in a main-thread script instead.
