Accessing instance of Handsontable from DOM

I am using Handsontable through component, but now I need physicalRow for each row for which I need current Handsontable instance.

<hot-table 
   settings="$ctrl.settings"
   hot-id="my-handsontable"
   read-only="true"
   datarows="$ctrl.issueData">
</hot-table>

So on clicking any row, I want that row to be converted to physicalRow

afterOnCellMouseDown: function (event, coords) {               
                let index = hotInstance.toPhysicalRow(coords.row)
                if (coords.col == 0 && coords.row != -1) {
                    ctrl.selectIssue(index);
                }
            },

So I want to access the instance of this current hotTable.

PS I tried HotTableRegisterer, but as we have Angular 1 and are directly using handsontable through its handsontable.full.js and handsontable.js files, I don’t know how to use HotTableRegisterer in this case.

Never mind, it’s solved now. I thought HotTableRegisterer might be the need, but seems like we already have the context via “this”

afterOnCellMouseDown: function (event, coords) {               
                let index = this.toPhysicalRow(coords.row)
                if (coords.col == 0 && coords.row != -1) {
                    ctrl.selectIssue(index);
                }
            },

Hi @mehdiraza

That’s great to hear to you’ve managed to solved the issue. I will close this topic then.