ContextMenu for Tree Item

Hi,

Could you please give me a hint on how to show a context menu on clicking a tree item?

Thanks a lot!

Check
http://webix.com/snippet/59f7ab3a

Hi, Maksim.

Thanks for the reply. But sorry! I was not precise on my question. What I really wanted to ask is: I want to use a tree as a menu. When I left-click any item on the tree, it pops up a context menu, and each tree item has its own context menu items. Is it possible?

Thanks!

Finally I solved it! But how can I show the context menu at the right side of the tree item? {pos:“right”} seemed not to work!

http://webix.com/snippet/a8e6cee0

In your snippet tree takes a whole screen, so there is no space “right” to the tree.

Set fixed size for the tree

http://webix.com/snippet/f476a431

Or just show window next to event

http://webix.com/snippet/71f5d452

Great! Thanks a lot!