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?
How to use $$("appmenu") to remove like image below ?
Hello @duynq2197, As a solition, you can try to use onAfterSelect event and remove needed item:
onAfterSelect
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
filterMode
Oh i mean something like
$$("appmenu").removeView("id")
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
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?
How to use $$("appmenu") to remove like image below ?
Hello @duynq2197,
As a solition, you can try to use
onAfterSelect
event and remove needed item: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")