Is there a way to store some custom internal data(Array, Object) per a row?
Is there a way to store some custom internal data(Array, Object) per a row?
oneumyvakin
Posts: 2Questions: 1Answers: 0
My task is to perform some calculation on user action for a row. This calculation need a piece of data(Array or Object or any iterable object) which should be storing in a row. I'm plan to create table from JSON object store some data to some internal row property and access it when need. Is it possible?
My current workaround is to get row id and get row custom data from from separate JSON object by id.
This discussion has been closed.
Answers
Sure - use an object as the data source for the rows and just don't tell DataTables to use the private calculation. See: http://datatables.net/manual/data#Objects
Allan