Can't add javascript object using row.add function
Can't add javascript object using row.add function
pawan.nogariya
Posts: 2Questions: 1Answers: 0
I am trying to add anchor object using row.add
method but it seems it is not considering it as javascript object but as a normal object and so just showing its href property as the text in the column.
This is the jsFiddle example https://jsfiddle.net/yza924ws/
This discussion has been closed.
Answers
Currently what you are trying to do isn't possible in datatables.
You will either have to wrap it up in a
tr
and then pass that to the API or use a renderer to create the node.Thanks
Tom
ok, but wrapping it with
tr
is also not working. I end up passing the markup string directlyIt appears to work okay here: https://jsfiddle.net/yza924ws/3/ .
Allan