<input>
A single-line text field, like <input type="text">. For several lines, use <textarea>.
Usage
src/app/search.ts
Import LYNX_ELEMENTS in your component (see Elements).
Attributes
Plus the common attributes, such as id and class.
Events
Read the payload from $event.detail (see Handling taps and 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.
Related
- Forms: reactive forms, validation and the on-screen keyboard
<textarea>- Input: the styled UI component
- Elements: the form value accessors for
formControlandngModel
