Get column name
Get column name

Hi, i need to retrieve the column name by index. I use DataTable version 1.10.18
Can you help me?
This discussion has been closed.
Hi, i need to retrieve the column name by index. I use DataTable version 1.10.18
Can you help me?
Answers
The
column().header()
API can be used for this.Kevin
Thank you, but so i've the title or description of my column.
I need the name that i wrote into columndef of my datatatable
Are you saying you used
columns.name
? If so the docs show how to refer to it in the Datatables API's.Kevin
i find it, i used column(index).dataSrc()
i' ve another question.
i load datatable with
i hope that arrDtOrineFornitore is indipendent from datatable modify, but when i do
i found the relative column into array modified.
help
I'm not following that, sorry. Please could you create a test case to demonstrate it. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.
Cheers,
Colin