Add a headers='' attribute to a td
Add a headers='' attribute to a td

Hi,
I searched everywhere but I can't find the way to add the headers='' attribute to a td with Datatable.
I tried to use
ColumnDefs { targets: 0, headers: 'test' }
but it doesn't work.
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
There is no
headers
option for the column options, as you'll see in the full list of options.To do what you are looking for here, use the
columns.createdCell
option - e.g.:Allan
@allan thank you