Angular 6 Handsontable

How to make a particular column of Handsontable readOnly dynamically in Angular 6 wrapper on click of some external button ?

Hi @swlicenses

here is a demo that can help https://stackblitz.com/edit/angular-ygrrsb?file=src/app/app.component.ts

I have attached a button outside the table that makes a column readOnly

Thanks.

How to get the handsontable instance from the hotId in angular 6 wrapper ?

Hi @aleksandra_budnik

here’s a demo that shows how to get the ID https://stackblitz.com/edit/angular-laxwog?file=src/styles.css
I put the [hotId]="hotId" in the html file and then line 10 in ts file and use in the 24 line of the same file.

Let me know if you’d need anything else.

Thanks. But my requirement is bit different I need to create multiple handsontable on the same page based on the size of some array and manipulate the changes in each handsontable accordingly. so I need something where I can manipulate the things in the afterChange event of Handsontable based on the Id of that particular Handsontable in which user is making the changes. Please help me out in this regard.

Here is an example with two tables. They have their own settings so you will always know what happens for the particular instance.

Demo https://jsfiddle.net/kf20qz8x/