Programmatically Select a Segmented "segment"

Could someone possibly tell me how one would programmatically select an arbitrary “segment” within a Segmented control? The control is linked to a multiview and making the correct view visible seems straight forward with $$(“View”).show(); but I can’t work out how to “select” the relevant “segment” (button) so that the correct segment shows as selected. I assume one would use the focus method but I’m unsure how to address the action.
Any guidance would be very welcome - thanks

  • SrvrSide

Hi,

You need to call the setValue method of a segmented control. The linked multiview will automatically switch to the corresponding cell.

Check the snippet, please: http://webix.com/snippet/eabab538

ahhh… Thank you Helga, very much

  • SrvrSide