TextBox
Text input box. The current value goes into{Inputs.<Name>} and can be read by bindings and functions.
Signature
Attributes
Content syntax
Value="初始值".
Runtime behavior
- The initial value comes from the interpolated
Value; after that the internalInputsstate takes over. - User input is written to
{Inputs.Name}immediately. OnChangefires on every keystroke; do debouncing inside the function.
Example
Gotchas
Valueis 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".