Display a data structure with a nested array in the handsontable -
the data structure of objects want display in handsontable looks this:
[ { "job": "farmer, "persons": [ {"name": "mike"}, {"name":"nina"} ] }, { "job": "carpenter, "persons": [ {"name": "lenny"} ] } ]
the table have in mind this:
job | name ----------------------- farmer | mike | nina carpenter | lenny
is there way achieve this?
i created jsfiddle here: http://jsfiddle.net/flqre6w7/
as can see wrote:
columns: [ {data: 'job'}, {data: 'persons'} ]
i love write:
columns: [ {data: 'job'}, {data: 'persons.name'} ]
Comments
Post a Comment