row().add & column render()
row().add & column render()
Hello,
I have a column that is rendered thus:
{
data: "size",
render: function (d, t, row) {
return row.width + 'x' + row.height;
}
},
When I add a row with row.add(), how should I set the value for 'size' column? Following is an attempt that doesn't work:
table.row.add({
........
........
size: function() {
return width + 'x' + height;
}
)}
Kindly advise,
Regards,
Harsha
This question has an accepted answers - jump to answer
This discussion has been closed.
Answers
Looks like you have an object based data structure that includes
width
andheight
in each row, something like this?I think what you want is something more like this:
If this doesn't help then please post an example of the raw data for a row and your full Datatables init code.
Kevin
That worked! Thanks @kthorngren !