Add "data-title" to every
Add "data-title" to every
ierpe
Posts: 6Questions: 1Answers: 0
Hi,
In order to achieve something like this : http://elvery.net/demo/responsive-tables/ , I would to add a "data-title=[column-name]" to every <td> element.
Any idea on how to achieve this?
This discussion has been closed.
Answers
You would need to use
columns.createdCell
to add the attribute.Another option, although not exactly the same, might be to use Responsive.
Allan
Thanks for your answer, at the end I did it this way :
I added this code to the "initComplete" and "drawCallback" events (I'm using ajax)
I will also try the columns.createdCell thanks for that!
For info the "responsive" link you posted isn't working.
Doh - link fixed!