Tabulator: How to get column header of the cell clicked ?

Created on 18 Jan 2018  路  1Comment  路  Source: olifolkerd/tabulator

How to get column header of the cell clicked ?

I tried
alert(cell.getCol().getIndex());

but it returns nothing.... pls help.

Question - Ask On Stack Overflow

Most helpful comment

I think you either want:
cell.getColumn().getField(); for the field name, or
cell.getColumn().getDefinition().title; for the title

>All comments

I think you either want:
cell.getColumn().getField(); for the field name, or
cell.getColumn().getDefinition().title; for the title

Was this page helpful?
0 / 5 - 0 ratings