This page shows how to use Handsontable with various data sources:
Please take note that Handsontable will change the original data source. More about this here: Understanding binding as reference.
When you use object data binding, Handsontable needs to know the data structure to create when you add a new row.
If your data source contains at least one row, Handsontable will figure out the data structure based on the first row.
In case you want to start with an empty data source, you will need to provide the dataSchema option that contains the data structure for any new row added to the grid.
The below example shows custom data schema with an empty data source:
If your dataSchema is actually a constructor of an object that doesn't directly expose its members, like a Backbone.js model, you can specify functions for the data member of each columns item.
The below example shows a small example of using such objects: