Documentation

setValue

selects the option by its ID

void setValue(string value);

Parameters

valuestringa new value for the control

See also

Example

webix.ui({
    view:"segmented", options:[
            { id:"one", value:"One" },
            { id:"two", value:"Two"},
            { id:"three", value:"Three"}
        ]
});
...
$$(segmented1).setValue('two');
    //choose the second option

Back to top