How to getInstance using 0.37

Tags: #<Tag:0x00007efc65542460>

I can get Instance (version 0.35) as stated in
https://docs.handsontable.com/pro/1.13.0/demo-jquery.html

but, it does work under v0.37.

any suggestion?

// Instead of creating a new Handsontable instance
// with the container element passed as an argument,
// you can simply call .handsontable method on a jQuery DOM object.
var $container = $("#example1");

$container.handsontable({
data: getData(),
rowHeaders: true,
colHeaders: true,
contextMenu: true
});

// This way, you can access Handsontable api methods by passing their names as an argument, e.g.:
var hotInstance = $("#example1").handsontable(‘getInstance’);

Hi @zhang

I have used the same example here http://jsfiddle.net/oqujjcgb/ and loaded 1.17.0 scripts and it looks like it’s working.