Get columns using the API
Get columns using the API
mazing
Posts: 5Questions: 3Answers: 0
How can I get a list of the columns? I am using https://datatables.net/examples/api/show_hide.html but I don't want to write all the column names again, so I will just pull the column ids, names, and visibility directly from the API.
This discussion has been closed.
Answers
Loop through all the columns with this.
http://datatables.net/reference/api/columns().every()