Handsontable example
HTML
<script src="https://cdn.jsdelivr.net/npm/handsontable@latest/dist/handsontable.full.min.js"></script>
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable@latest/dist/handsontable.full.min.css" />
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable@latest/styles/ht-theme-main.css" />
<link type="text/css" rel="stylesheet" href="https://cdn.jsdelivr.net/npm/handsontable@latest/styles/ht-theme-horizon.css" />
<script src="https://handsontable.com/docs/scripts/fixer.js"></script>
<div id="example1" ></div>
JavaScript
var example = document.getElementById('example1');
var hot = new Handsontable(example, {
data: Handsontable.helper.createSpreadsheetData(10, 3),
colWidths: 100,
rowHeaders: true,
colHeaders: true
});
hot.addHook('afterOnCellMouseDown', function() {
setTimeout(function() {
if (hot.getActiveEditor()) {
console.log(hot.getActiveEditor().isOpened())
}
}, 10)
})