I am trying to make a data binding from array representation to be dispalyed in one column. See http://jsfiddle.net/0vgb89vn/2/
For example:
var dataAsArray = {
"names": ["firstName", "lastName", "company", "employed"],
"data": [
["Cox", "Carney", "Enormo", true],
["Lorraine", "Wise", "Comveyer", false],
["Nancy", "Waters", "Fuelton", false]
]};
To be dispalyed as
first name | lastName | company | employed
Cox | Carney | Enormo | true
Lorraine | Wise | Conveyer | false
....
If simplier, another data representation could be
var dataAsArrayOption2 = {
"names": ["firstName", "lastName", "company", "employed"],
"data": [
["Cox", "Lorraine", "Nancy"],
["Carney", "Wise", "Waters"],
["Enormo", "Comveyer", "Fuelton"],
[true, false, false]
]
};
Any idea how to do the data biding? do we need to use a cell template? or a mapping function to retrieve data per row and per column?
Again here is a the context of my issue:
http://jsfiddle.net/0vgb89vn/2/
Thanks in advane for our help!