Create header titles within datatables
Create header titles within datatables
islamelshobokshy
Posts: 99Questions: 20Answers: 1
Is there any way I can create the header titles inside datatables and not in the HTML? As the header titles I get them using a dynamic ajax call ...
This discussion has been closed.
Replies
Use
columns.title
for this.Kevin
Thanks!
Is there now a way to create X number of <th> in footer depending on the number of titles/columns dynamically?
I tried doing it using just normal JS in a loop to give me the exact amount :
But datatables doesn't like this, he ignores it, as if it didn't exist. Is there a reason why datatables wouldn't use the pre-created th's in JS right before the initialization of datatables?
Figured it out, thanks anyway !