# \[Announce\] node-red-contrib-ui-contextmenu

**URL:** https://discourse.nodered.org/t/announce-node-red-contrib-ui-contextmenu/16211
**Category:** Share Your Nodes
**Created:** [2 October 2019 18:05 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-contextmenu/16211 "2019-10-02T18:05:53Z")
**Posts on this page:** 1
**Showing post:** 46

<div class="post-metadata">

### Author: ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)
#### Post date: [3 March 2020 22:08 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-contextmenu/16211/46 "2020-03-03T22:08:10Z")

</div>

> [@Paul-Reed](#):
>
> It would be great if a specific new node was created that combined the button and context menu

Will try to implement it as soon a I am retired, which is in about 21 years. So please be a bit patient ....

But instead of creating combinations of nodes, "_perhaps_" a UI node could send:

- The _clicked coordinates_ (like we currently do)
- The _bounding box (minX, minY, maxX, maxY) of the element that has been clicked_.

Then you can calculate in your flow where you want to show the contextmenu. E.g. when you want to have the contextmenu to appear in the center of a button, then you just calculate the center of the button yourself. (ButtonNode --\> FunctionNode (calculate the location) --\> ContextMenuNode).

Just a wild idea... Not sure whether this is possible, and no time at the moment to try something...

---

_[View the full topic](https://discourse.nodered.org/t/announce-node-red-contrib-ui-contextmenu/16211)._
