Search code examples
hidetabulatordynamic-columns

Can a single column header be empty or hidden in Tabulator


I have a HTML table, that I transform into a Tabulator table. It has four colums where column 1 and 4 do not have a headertext original table

In Tabulator it is possible to hide the column headers as follows, with the headerVisible option:

headerVisible:false

I want to be able to hide the header of a single column. but it seems this option is not available. Below is what I want (edited via the DOM)

example of what I am looking for

Any thoughts on how to approach this?


Solution

  • If you don't want the column header to have a title, you should simply not set the title in the th tag for that column.

    You can then set the config for that column on the properties on the hr tag, for example to set the formatter for that column to html you would:

    <th tabulator-formatter="html"></th>