Thruk/Panorama: Custom Context Menu?


#1

Hi,
im currently trying to modify the context menu that thruk provides when right clicking on an object inside the panorama plugin. I looked through thruks files for some time but couldnt find the spot where the context menu gets defined.
Thats the menu where i try to add some own menuoptions:
image
Thanks in advance for any tips i can get ! :slight_smile:


(Sven Nierlein) #2

That menu is currently not meant to be changed. But you can assign custom action menus to each icon via the β€œLinks” menu. Simply select the Action Menu you like. The menu has to exist befor that of course, see https://thruk.org/documentation/action-menu.html for some examples.
Hope that helps.

If you really want to have a look into the source of the context menu, start here: https://github.com/sni/Thruk/blob/aa756af71d9213bfbc312414e16f8f872d3e2f5d/plugins/plugins-available/panorama/root/js/panorama_js_pantab.js#L962