viewof testTable = {
const container = html`<div id="example1" class="hot handsontable htRowHeaders htColumnHeaders" style="height: 320px; overflow: hidden; width: 100%;" data-originalstyle="height: 320px; overflow: hidden; width: 100%;"></div>`;
const hot = new handsontable(container, {
data: handsontable.helper.createSpreadsheetData(1000, 1000),
colWidths: 100,
width: '100%',
height: 320,
rowHeights: 23,
rowHeaders: true,
colHeaders: true
});
hot.updateSettings({
afterRender: isForced => {
hot.view.wt.wtOverlays.updateMainScrollableElements();
}
});
container.hot = hot;
container.value = hot.getSourceData();
window.setTimeout(() => {
container.hot.refreshDimensions();
}, 30);
return container;
}