Datamodel
Data Element
Element for declaring data model variables
Data Element
Coming soon: This feature is not yet available. Please check back soon.
The <data>
element declares a data model variable:
Props
Prop | Type | Default |
---|---|---|
id | string | - |
expr? | Expression | - |
value? | any | - |
type? | "STRING" | "NUMBER" | "BOOLEAN" | "JSON" | "MCP" | - |
readonly? | boolean | - |
fromRequest? | boolean | - |
defaultValue? | any | - |
schema? | object | - |
Examples
Basic Variable
JSON Data
Dynamic Value
Usage Notes
- Declares variables in data model
- Can specify type and validation
- Can be initialized with values
- Can be read-only or mutable
Common Patterns
- Form Data
- Configuration
- State Tracking