Right click event on tree component?

Hi,

I have a tree component, on right click, i would like open a pop up. Currently i have done it by double click. Is there any chance to do for right click?

You can use contextMenu
https://docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/working-with-perspective-components/perspective-component-properties#contextmenu

1 Like

The easiest way is to add an item to the context menu.
props.META.contextMenu.enabled : true
props.META.contextMenu.items : etc.

@Ujwal_Wankhede: SNAP!

2 Likes

But how to open a popup on right click?

Hey thanks for the headsup.
I tried using context menu and message handler, it worked as expected.