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

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -