Hello erverbody, need help pls
Im trying to call handsontable and put my new data in but its just happening nothing.
Also I using the work around “as any” , but how can i call it with the actual type?
i got all imports
updateHandsontableData() {
if (!this.$refs?.hotTableComponent) {
console.log(“TEST”);
return;
}
(this.$refs.hotTableComponent as any).hotInstance.loadData(
[[‘new’, ‘data’]]
);
(this.$refs.hotTableComponent as any).hotInstance.render();
},
component:
<hot-table
id=“resultTable”
ref=“hotTableComponent”
max-rows=“10”
:data=“tableData”
:columns=“columnsDef”
:col-headers=“colHeaders”
:license-key=“licenseKey”
:settings="{
rowHeaders: true,
filters: true,
dropdownMenu: false,
columnSorting: true,
manualColumnResize: false,
manualRowResize: false,
contextMenu: false,
search: true,
width: ‘100%’,
height: ‘90%’,
renderAllRows: true,
preventOverflow: ‘horizontal’,
colWidths: [25, 200, 200, 100],
stretchH: ‘last’,
editor: true,
}"
@click=“onCellMouseDown”
/>