Segmented - get button $view

Hi,

How would I get the $view of a segmented button?

-Thomas

Hello @TomasF,
Could you please clarify your issue?

In case you can refer to your segmented button (e.g. via id), you can use $view directly or getNode() method to get the HTML node of the component:

webix.ui({
   view:"segmented", id:"mysegmented", value:1, 
   options:[
      { id:"1", value:"Section A" }, // the initially selected segment
      { id:"2", value:"Section B" },
      { id:"3", value:"Section C" }
   ]
});
var node1 = $$("mysegmented").getNode();
var node2 = $$("mysegmented").$view;

Hello,

I’m trying to get the children/childNodes of the segmented, but when I try both of those methods return an empty list.

Thanks.

@TomasF
check this
https://snippet.webix.com/3c95yjw3

Awesome! Thank you!!