Skip to main content

TextBox

Text input box. The current value goes into {Inputs.<Name>} and can be read by bindings and functions.

Signature

Attributes

Content syntax

Equivalent to Value="初始值".

Runtime behavior

  • The initial value comes from the interpolated Value; after that the internal Inputs state takes over.
  • User input is written to {Inputs.Name} immediately.
  • OnChange fires on every keystroke; do debouncing inside the function.

Example

Gotchas

  • Value is an initial value, not two-way binding; external data changes do not overwrite user input.
  • {Inputs.Name} is case-sensitive.
  • Multi-line input requires an explicit Multiline="True".