Skip to main content

model

Connect a controlled value to its change event.

Quick reference​

SyntaxBehavior
model="name"Equivalent to binding value and assigning event.value on change.
model="draft.name"An existing writable local-state path.
model="host.name"An explicitly writable host binding.

Example​

<Column state="{name:''}">
<TextField label="Name" model="name" />
<Text bind-text="name" />
</Column>

Rules and validation​

The component must expose value and a change event. Do not also supply value or bind-value. Change payloads must be records containing value; value types are checked. Model assignment occurs before handler concurrency filtering. Programmatic changes do not synthesize user events.

Input lesson · Events