# Catch CellClick event in Table

**URL:** <https://discourse.holoviz.org/t/catch-cellclick-event-in-table/3544>\
**Category:** Panel\
**Created:** [April 7, 2022, 1:58pm UTC](https://discourse.holoviz.org/t/catch-cellclick-event-in-table/3544 "2022-04-07T13:58:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![pholochtairze](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/p/b3f665/32.png) [@pholochtairze](https://discourse.holoviz.org/u/pholochtairze)\
**Post date:** [April 7, 2022, 1:58pm UTC](https://discourse.holoviz.org/t/catch-cellclick-event-in-table/3544/1 "2022-04-07T13:58:26Z")

</div>

Hi!

My goal is to be able to find the cell coordinates clicked on a table (eg. “Row 5, column B was clicked”).

I saw in [Tabulator’s documentation](http://tabulator.info/examples/5.1#callbacks) that it was possible to catch a “cell-click” event.

When I go into holoviz’ repo, I also see that the [cell-click event is implemented](https://github.com/holoviz/panel/blob/master/panel/models/tabulator.ts#L29).

Unfortunately, I’m quite new to Holoviz and after having tried everything I could think of, I still can’t make it work.

My code looks like this:

```auto
import panel as pn
import pandas as pd

pn.extension("tabulator")

selection = {"foo": "bar"}
def update_selection(event):
    selection = event

df = pd.DataFrame([[1, 2, 3], [4, 5, 6]], columns=['a', 'b', 'c'])
tbl = pn.widgets.Tabulator(df)
tbl.param.watch(update_selection, 'cell-click')

pn.Column(selection, tbl)

```

If you have any idea of how to solve this, or documentation to explain me what I do wrong, it would be highly appreciated ! 🙂

PS: Holoviz is a really great tool! Thanks you very much for building it!!

Have a great day

---

<div class="post-metadata">

**Author:** ![Marc](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/marc/32/24_2.png) [@Marc](https://discourse.holoviz.org/u/Marc)\
**Post date:** [April 7, 2022, 2:33pm UTC](https://discourse.holoviz.org/t/catch-cellclick-event-in-table/3544/2 "2022-04-07T14:33:51Z")

</div>

Hi @pholochtairze

Welcome to the community. I guess you are referring to the click functionality in `http://tabulator.info/docs/5.1/callbacks#cell`.

This is currently not supported. But please create a request on github. I believe this could be generally useful.

What is currently supported is _row selection_.

For example something like

```python
import panel as pn
import pandas as pd

pn.extension("tabulator")

df = pd.DataFrame([[1, 2, 3], [4, 5, 6]], columns=['a', 'b', 'c'])
tbl = pn.widgets.Tabulator(df, selectable=1)
 
def update_selection(event):
    return event

update_selection=pn.bind(update_selection, tbl.param.selection)

pn.Column(tbl, update_selection).servable()

```

![image](https://discourse.holoviz.org/uploads/default/original/2X/6/6592413b059929137597739b994f4f5524079f29.png)

---

<div class="post-metadata">

**Author:** ![pholochtairze](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/p/b3f665/32.png) [@pholochtairze](https://discourse.holoviz.org/u/pholochtairze)\
**Post date:** [April 7, 2022, 2:52pm UTC](https://discourse.holoviz.org/t/catch-cellclick-event-in-table/3544/3 "2022-04-07T14:52:47Z")

</div>

Hi @Marc

Thank you very much for your very quick and precise answer!

I’ll open an issue on GitHub then!

Have a great day
