Rowcallback and render html
Rowcallback and render html
transporter_ii
Posts: 5Questions: 2Answers: 0
I've spent several hours poking around on this, but nothing is jumping out at me.
Can you render an html element from a rowcallback or not? What I have tried just prints out the html element in the row as a string.
I see there is a column render that might work, but I would have to do some work on the backend to make it work. If it would work from a rowcallback, I could make it work with the data as is.
Thanks,
This question has an accepted answers - jump to answer
Answers
Yes, see this test case:
https://live.datatables.net/zolukeqo/1
It uses this
rowCallback
:If you need help please update my test case or provide a link to a test case showing the issue you are having.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin
Exactly what I was looking for. Thanks. Maybe my keywords were wrong, but I sure couldn't find that by searching.