EasyUI Forum
July 05, 2024, 06:40:36 AM *
Welcome, Guest. Please login or register.

Login with username, password and session length
News:
 
   Home   Help Search Login Register  
Pages: [1]
  Print  
Author Topic: Dynamic menu for tree  (Read 2516 times)
stollar
Newbie
*
Posts: 7


View Profile Email
« 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.
Logged
jarry
Administrator
Hero Member
*****
Posts: 2269


View Profile Email
« Reply #1 on: June 17, 2019, 07:15:50 AM »

You should destroy the menu and create a new one when a tree node is selected.
Logged
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!