EasyUI Forum

General Category => EasyUI for jQuery => Topic started by: stollar on June 14, 2019, 11:23:24 AM



Title: Dynamic menu for tree
Post by: stollar on June 14, 2019, 11:23:24 AM
I need to create a context-menu on a tree but the contents of that tree depend on the type tree-node (folder or document). \

I can build by menu by appending items to an empty menu but I the next time I create a menu it appends to the last one so I need to clear the menu at the start of the process. This is eluding me for now.

Any hints or samples will be helpful.


Title: Re: Dynamic menu for tree
Post by: jarry on June 17, 2019, 07:15:50 AM
You should destroy the menu and create a new one when a tree node is selected.