value

sets the initial value for a control

string| number value;

Example

rows:[
    { view:"text", name:"country", label:"Country", value:"Belarus" },
    { 
        view:"combo", value:1, options:[ 
            { id:1, value:"Banana" },
            { id:2, value:"Papaya" }, 
            { id:3, value:"Apple" }
        ]
    },
    { view:"button", type:"form", value:"Submit data"}
]

Related samples

Details

All controls fall into:

  • single-value - those containing a string or a number;
  • multiple-value - those containing an array of values;

In case of multiple controls the value property defines the initially selected one.

Value of the control may be:

See also
Back to top