# Is there a way to modify the right-click context popup menu via the sdk?

**URL:** <https://forum.inductiveautomation.com/t/is-there-a-way-to-modify-the-right-click-context-popup-menu-via-the-sdk/66233>\
**Category:** Module Development\
**Tags:** ignition81, sdk\
**Created:** [November 8, 2022, 2:43pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-modify-the-right-click-context-popup-menu-via-the-sdk/66233 "2022-11-08T14:43:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![AMavros](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@AMavros](https://forum.inductiveautomation.com/u/AMavros)\
**Post date:** [November 8, 2022, 2:43pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-modify-the-right-click-context-popup-menu-via-the-sdk/66233/1 "2022-11-08T14:43:51Z")

</div>

Specifically, how do I modify the right-click context popup menu for the project browser panel in designer using the SDK, if possible?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 8, 2022, 3:05pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-modify-the-right-click-context-popup-menu-via-the-sdk/66233/2 "2022-11-08T15:05:42Z")

</div>

Probably cannot. You can define whatever menus you like on your own nodes, though.

---

<div class="post-metadata">

**Author:** ![AMavros](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@AMavros](https://forum.inductiveautomation.com/u/AMavros)\
**Post date:** [November 8, 2022, 3:44pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-modify-the-right-click-context-popup-menu-via-the-sdk/66233/3 "2022-11-08T15:44:27Z")

</div>

Can you clarify what you mean by that? Like in the views themselves or?

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [November 8, 2022, 4:21pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-modify-the-right-click-context-popup-menu-via-the-sdk/66233/4 "2022-11-08T16:21:58Z")

</div>

> [@Project Resource Documentation Feature](https://forum.inductiveautomation.com/t/project-resource-documentation-feature/66010/2):
>
> I don't think you can do things at the level required from a third party module;

This is what @paul-griffith said to me when I asked about being able to modify the right click menu for project resources.

Would be nice if there was a hook in place when the context menu of resources is created. It would enable more "design-time" modules, which I think are a missing gap in the module development market right now.

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 8, 2022, 4:31pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-modify-the-right-click-context-popup-menu-via-the-sdk/66233/5 "2022-11-08T16:31:54Z")

</div>

To be explicitly clear:

As a third party module, you can add whatever nodes you want to the project browser tree. Those nodes can have whatever context menu you want on them. For consistency, you will likely want to 'inherit' from one of our base classes with common context menu actions defined, but it's not strictly necessary.

As a third party module, you _cannot_ change what those base classes add; you can add to the common menu bar but not decorate common context menus.

---

<div class="post-metadata">

**Author:** ![kgamble](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/kgamble/32/8019_2.png) [@kgamble](https://forum.inductiveautomation.com/u/kgamble)\
**Post date:** [November 8, 2022, 4:37pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-modify-the-right-click-context-popup-menu-via-the-sdk/66233/6 "2022-11-08T16:37:12Z")

</div>

> [@paul-griffith](#):
>
> As a third party module, you _cannot_ change what those base classes add; you can add to the common menu bar but not decorate common context menus.

To understand this wording a bit better, by "decorating a common context menu", do you mean adding a new context item to a pre-existing platform context menu?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [November 8, 2022, 4:39pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-modify-the-right-click-context-popup-menu-via-the-sdk/66233/7 "2022-11-08T16:39:19Z")

</div>

Correct. You can make MyCoolResourceNode have whatever context menu you want. You _cannot_ change what menu items are available on, e.g. ViewNode.

We could potentially use the existing JMenuMerge system for those resource and folder menus, but a compelling enough use case hasn't yet been found 🙂

---

<div class="post-metadata">

**Author:** ![AMavros](https://avatars.discourse-cdn.com/v4/letter/a/94ad74/32.png) [@AMavros](https://forum.inductiveautomation.com/u/AMavros)\
**Post date:** [November 8, 2022, 6:30pm UTC](https://forum.inductiveautomation.com/t/is-there-a-way-to-modify-the-right-click-context-popup-menu-via-the-sdk/66233/8 "2022-11-08T18:30:06Z")

</div>

Ah ok, thank you all for the information! 🙂
