Amarillo
Amarillo

Reputation: 107

Webix - hiding menu items

Is it possible to make a menu item invisible via some action using Webix? Perhaps, by clicking on a button - any ideas? For this case I made a snippet with basic implementation: http://webix.com/snippet/29018dad

Upvotes: 4

Views: 353

Answers (1)

user5546512
user5546512

Reputation:

You can set hideItem method to your button. Here's the example:

{ view:"button", ... 
  click:function(id){
      $$("top_menu").hideItem(3);
  }
}

http://webix.com/snippet/4675566e

Upvotes: 5

Related Questions