options

defines options for a set of radio buttons

array options;

Example

webix.ui({
    view:"radio",
    label:"Branch",
    value:1,
    options:[
        { "id":1, "value":"Master" }, // the initially selected item
        { "id":2, "value":"Branch" }
    ]
});

Related samples

Details

Options can be set as:

  • an array of strings
{
    view:"radio",
    options:["Master", "Branch"]
}
  • an array of objects, each with the id and value properties, where
    • id - (string, number) the item ID, which serves as the real value of the option for inner logic;
    • value - (string) the item label, which is the displayed string of the option.
See also
Back to top