Index...
Centrallix Documentation
|
widget/variable
variable :: A scalar variable object
Metadata:
type: | widget/variable |
visual: | no |
container: | no |
form element: | no |
Overview:
The 'variable' nonvisual widget is used to create a global javascript scalar variable in the application.The variable can be an integer or string.
Usage:
This nonvisual widget is used at the top-level (within a "widget/page"). Currently it has no events, and so shouldn't contain any visual or nonvisual widgets.
Properties:
Property | Type | Description |
fieldname |
string |
The field with which to link / connect to the variable. |
form |
string |
The form (e.g. it's osrc) with which to associate the variable and fieldname (if different than the form in which variable is currently nested). |
type |
string |
(e.g. integer). |
value |
string |
Can be accessed as :var_name:value. |
Actions:
Action | Description |
SetValue |
Called by a widget/connector: Sets the value of the variable to whatever is specified by the "Value" parameter. |
Sample Code:
$Version=2$
// This creates a global variable.
counter "widget/variable"
{
value = 0;
}
Comments...
(none yet)
Add a Comment...
|