Appending data does not work when it's child data
Appending data does not work when it's child data
LaRichy
Posts: 17Questions: 4Answers: 0
When I use this code
"columns": [
{ "data": "ssName2",
fnCreatedCell: function (nTd, sData, oData, iRow, iCol) {
$(nTd).append(' ('+oData['ss1Name2']+')'); }}
]
It works perfectly, but when I make the window smaller and the data goes to the responsive child rows, the append is gone.
Can you help me?
P.S. I am no developer!
This discussion has been closed.
Answers
Found it: https://www.datatables.net/examples/advanced_init/column_render.html
Only, how to check if it isn't empty... See: https://www.datatables.net/forums/discussion/55863/append-only-if-there-is-data#latest