# \[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:** 55

<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:** [2 November 2021 11:04 UTC](https://discourse.nodered.org/t/announce-node-red-contrib-ui-contextmenu/16211/55 "2021-11-02T11:04:45Z")

</div>

Hi, no problem to be late.  
What you need is one or more callbacks injected into ui-table via `msg.ui_control` i.e.

```auto
{
    "customHeight": 18,
    "tabulator": {
        "columns": [
            {
                "field": "expand",
                "headerTooltip": "click to expand more details",
                "headerContext": "function(e,column){ this.send({ui_control:{callback:'headerContext'},position:{\"x\":e.x,\"y\":e.y},payload:column.getFieled()}); e.preventDefault(); }"
            }
        ]
    }
}

```

The function in a more readable format you can define for every column, cell or row ... (this one only reacts on context (right) clicks on the header

```auto
var headerContext= function (e, column) {
    this.send(
        {ui_control: { callback: 'headerContext' },
         position: { "x":e.x,"y":e.y},
         payload:column.getField()
        }
    );
    e.preventDefault();
}

```

there is a `cellContext` or `rowContext` too with slightly different parameters

> **[Tabulator - Interactive JavaScript Tables](http://tabulator.info/docs/4.7/callbacks)**
>
> Create interactive data tables in seconds with Tabulator. A lightweight, fully featured JavaScript table generation library.

---

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