Variables

Variables are the basic blocks of state management. Components and expressions in applications are bound to variables, and the variables and their structure must be defined to ensure that the design time and runtime work properly.

A variable must have a name and a type. Variables are in the variables namespace.

A variable can send an event when it changes. To add an event handler to a value change event, specify it in the 'onValueChanged' property of the variable. For details, see Variable ‘onValueChanged’ Events. See rateLimit Variable Property for information on setting a timeout value for the 'onValueChanged' property.