Initialization using a settings object

Tags: #<Tag:0x00007f8b25ae6ae8>

Hello,
I have just began my project on Handsontable. Currently I’m going through the tutorials (https://handsontable.github.io/angular-handsontable/examples/settings-object)

I followed every step to create a spreadsheet as mentioned in the tutorial.

app.component.ts

settings = {
data: Handsontable.helper.createSpreadsheetData(25, 50),
colHeaders: true,
rowHeaders: true,
}

app.component.html

<hot-table [settings]=“settings”>

But when I run the code I am getting an error in browser console:
ERROR TypeError: Cannot read property ‘helper’ of undefined

Am I missing anything? Please help

Hi @thenaveenn

are you able to display anything besides the helper, like an array or arrays?

[[1,2],[3,4]]

Hello @aleksandra_budnik
Thanks a lot for your reply :slight_smile:

As of now, I am just able to create the basic grid (5 X 5) by using in app.component.html (which is shown in https://handsontable.github.io/angular-handsontable/quick-start)

That is something. If you have the data it’s a good start :slight_smile:
Our developer is currently working on the wrapper and answer some questions so feel free to ask anything.