How to set a value for sidebar menu from json data

Hi webix team,

How to set a dynamically value for sidebar menu from json data

i attached the code plzz find out below

like this iam setting value for side bar menu

for(i=0;i<sblen;i++){
var side_menu = sidebarItems[i].ID;
if($$(side_menu)){
$$(side_menu).setValue(sidebarItems[i].VALUE);
}
}

{
view: "sidebar",
id:"sidemenu",
data: [
{id: "Overflow", icon: "dashboard"},
{id: "flow", icon: "dashboard"}
]
}

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!