I'm using JQuery DataTables, and have an object like:
{
table_rows: {
row1: {val: value1},
row2: {val: value2},
...
rown: {val: valuen}
}
}
I need to tell DataTables to use the object keys of the table_rows object as rows, but it will not. Every example I can find has table_rows as an array of objects, which would be have table_rows [ {val: val1}, {val: val2} ...]
Any ideas how to make the former work?
EDIT: Added example:
Here is an example.
ajax: { url: 'xyz', type: 'GET'}, columns: [ ???? ]spec. I cannot even figure out how to specify a value function with DataTables because they all want to pass 1 row at a timetable_rowsinto array of objects before passing it to DataTables. Can you show expected table structure, i.e. what table columns do you expect to see?