getOption of ui.segmented, Methods Webix Docs
returns the option of a segmented button
object getOption(string|number id);
id
| object | the object with the ID and the value of an option |
Example
var option = $$("segmented").getOption("2");
/*
{ "id":"2", "value":"Red" }
*/
option.value = "Magenta";
$$("segmented").refresh();
Join Our Forum
We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.