How to add action to "right click menu"

As we know,rigth click on anyone component that will show a action list menu. I want to add an action to this action list menu.
Do you know how to implete it by ruby?

Here’s the API method for adding custom entries to the context menu:

1 Like

It is working.Thanks very much.