HI, i create a menu by sidebar,
https://docs.webix.com/desktop__sidebar.html
ID of sidebar is “appmenu”/ and have 3 node with id: “home”, “content”, “exit”
how to remove “content” by select $$(“appmenu”) ?
thanks!!
HI, i create a menu by sidebar,
https://docs.webix.com/desktop__sidebar.html
ID of sidebar is “appmenu”/ and have 3 node with id: “home”, “content”, “exit”
how to remove “content” by select $$(“appmenu”) ?
thanks!!
Hello @duynq2197 ,
I’m afraid the description of the issue is not clear for us. Could you please clarify the use-case or share a snippet?
Hello @duynq2197,
As a solition, you can try to use onAfterSelect
event and remove needed item:
on:{
onAfterSelect: function(id){
if(id == "content"){
webix.delay(() => {this.remove(id)});
}
},
}
Please check the next snippet:
https://snippet.webix.com/vm3wxraf
Also you can apply a filter that will show/hide positions for a single-level data and for multi-level data you need to change the filterMode
.
https://snippet.webix.com/38nleqdx
Oh i mean something like
$$(“appmenu”).removeView(“id”)