Hi Guys,
I am passing dynamic data to handsontable by passing two objects. Header and rows:
//get dynamic header
var headers = Object.keys(Dataobj[0]);
//get datarows
function getRows() {
var columns = [];
var properties = Object.keys(Dataobj[0]);
for (var i = 0; i < properties.length; i++) {
columns.push({
data: properties[i],
type: 'text'
});
}
return columns;
}
//bind header and data to handsonTable
columns: getRows(),
colHeaders: headers,
Now my question is how do I pass the type. You can see that I head coded to text right now.
I’m wondering if handsontable can recognize my columns type.
Please, help.