Adding custom items to right-click context menu

tools
ruby
api
right-click
context_menu

#1

I have created a Tool that detects when the object I am right-clicking has some specifications. I would like to add some custom items to the right-click context menu of these objects but I don’t know how.

I’ve seen that some extensions, like Dynamic Components, accomplish the results I want to get, but I can’t find related info. Could you help me please?


#2

UI#add_context_menu_handler is used to add something to the context menu of the select tool. Tool#getMenu is ued in custom Ruby tools.


#3

There is an example posted in this thread:


#4

This topic was automatically closed after 91 days. New replies are no longer allowed.