returns the option of a segmented button
id | string|number | the ID of an option |
object | the object with the ID and the value of an option |
var option = $$("segmented").getOption("2");
/*
{ "id":"2", "value":"Red" }
*/
option.value = "Magenta";
$$("segmented").refresh();
Back to top