Skip to main content

Edit a value

Connect a text input to one writable local value.

Before you start: Respond to a press.

model="name" supplies the current value and handles the control’s change event by assigning event.value back to name. The readout and input share the same state.

Connect the input​

The input owns editing behavior; the document owns its value.

<Column state="{name:''}" class="p-4 gap-3">
<TextField label="Your name" model="name" />
<Text bind-text="'Hello, ' + name" />
</Column>
Edit one value
editable
Browser preview
rReady to explore
Environment & events

Browser rendering of the shared document. Host services are bundled demo mocks. XML edits reset local state; data edits preserve compatible state.

Interact with the preview to inspect emitted events and mocked service calls.

Try it: Type a name and watch the readout. Change the initial state to {name:'Sam'} and reset the example.

Next: show conditional content. Reference: model.