# Edit context on Perspective table component

**URL:** <https://forum.inductiveautomation.com/t/edit-context-on-perspective-table-component/81114>\
**Category:** General Discussion\
**Tags:** ignition81, perspective\
**Created:** [October 27, 2023, 7:10pm UTC](https://forum.inductiveautomation.com/t/edit-context-on-perspective-table-component/81114 "2023-10-27T19:10:03Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bwirth](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@bwirth](https://forum.inductiveautomation.com/u/bwirth)\
**Post date:** [October 27, 2023, 7:10pm UTC](https://forum.inductiveautomation.com/t/edit-context-on-perspective-table-component/81114/1 "2023-10-27T19:10:03Z")

</div>

When I right click in a table component on the page I get a "Copy" dialog. Any way to suppress this? I have a onContextMenu action and "Prevent Default" is selected. This is a custom alarm display for the screens using a Table component in Perspective.

![Copy dialog](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/b/0bfd067135acc282913056d02f771dde084b08c2.png)

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [October 27, 2023, 8:23pm UTC](https://forum.inductiveautomation.com/t/edit-context-on-perspective-table-component/81114/2 "2023-10-27T20:23:09Z")

</div>

**Bad news:**  
Unfortunately, the only current avenue for preventing the Copy option is to supply the Table with a dedicated context menu via `Table.meta.contextMenu`.

**Good news:**  
You can short-circuit this to make it work for you by setting `Table.meta.contextMenu.enabled` to `true`, but then supply no items. The result is that the Table will try to use the context menu in props, find no items, then display neither context menu nor Copy option.

---

<div class="post-metadata">

**Author:** ![bwirth](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@bwirth](https://forum.inductiveautomation.com/u/bwirth)\
**Post date:** [October 27, 2023, 9:01pm UTC](https://forum.inductiveautomation.com/t/edit-context-on-perspective-table-component/81114/3 "2023-10-27T21:01:00Z")

</div>

Works like a charm! Thank you!

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 27, 2023, 9:24pm UTC](https://forum.inductiveautomation.com/t/edit-context-on-perspective-table-component/81114/4 "2023-10-27T21:24:46Z")

</div>

> [@bwirth](#):
>
> Works like a charm!

Are you saying that charms work? 🥴

Don't forget to click the ✓ "solution" icon on the answer that solves your problem. That way it gets marked on the main page as solved.

---

<div class="post-metadata">

**Author:** ![hunterdg](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/hunterdg/32/67774_2.png) [@hunterdg](https://forum.inductiveautomation.com/u/hunterdg)\
**Post date:** [January 14, 2025, 6:37am UTC](https://forum.inductiveautomation.com/t/edit-context-on-perspective-table-component/81114/5 "2025-01-14T06:37:52Z")

</div>

Curious - how can I _retain_ the Copy function **and** add additional context items? From a brief search, it doesn’t seem to be straightforward.
