# Contextmenu location

**URL:** <https://discourse.nodered.org/t/contextmenu-location/22780>\
**Category:** Developing Nodes\
**Created:** [7 March 2020 22:46 UTC](https://discourse.nodered.org/t/contextmenu-location/22780 "2020-03-07T22:46:23Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)\
**Post date:** [8 March 2020 11:18 UTC](https://discourse.nodered.org/t/contextmenu-location/22780/6 "2020-03-08T11:18:31Z")

</div>

Another Idea (and question if this could be feasible)  
Assuming that is a niche application:  
Make ui-control to accept a callback function via `msg.ui_control.onMouseClick=“function (mouseInfo) {.... this.send(...)}”`  
The callback function can filter the relevant data on client side and only emit a message to the backend if useful.  
Basically this is how I did it in my remote-device-table with ui-table/tabulator.

> [@\[Announce\] remote device table (and collaboration wanted)](https://discourse.nodered.org/t/announce-remote-device-table-and-collaboration-wanted/22505):
>
> Hello after a lot of work (perhaps too much work) I like to share my first beta version of a flow to display the status of remote devices on the dashboard. It is always good to have an eye on your sensors and actuators especially when they are connected wireless or battery powered. The flow first developed around my homie-convention-node but soon I decided to make it more versatile because I have devices around the house which not support the homie convention. [teaser] Currently supported are…

This could perhaps keep traffic to a minimum and no confusion options for normal users.

---

_[View the full topic](https://discourse.nodered.org/t/contextmenu-location/22780)._
