options

defines options for Radio, Segmented, and Tabbar

array options;

Example

webix.ui({
    view:"segmented",
    options:[
        { id:"1", value:"Tablets" },
        { id:"2", value:"Injections" },
        { id:"3", value:"Liniments" }
    ]
});

Details

Note that each object in the array must have the following properties:

  • 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.

Options can also be set as an array of strings. In this case the IDs and the values will be taken from these strings:

webix.ui({
    view:"segmented",
    options:[
        "Tablets",
        "Injections",
        "Liniments"
    ]
});
Back to top