When i use afterChange hook (Angular 6 + Handsontable) and inside it i use hot.getDataAtCell(...) then all cells in row are changed
I tried to use different hooks (beforeChange, afterChange), non which worked
if (changes && source) {
this.newCellCol = source[0][0];
this.newCellRow = source[0][1] + 1;
this.newCellData = this.tempId.getDataAtCell(source[0][0], source[0][1]);
console.log(this.newCellData);
}
},
afterChange: (changes, source) => {
if (changes && source) {
this.tempId.setDataAtCell(this.newCellCol, this.newCellRow, this.newCellData);
}
}
};
i would like t have entered value added also to cell next to it but it gets added to all cells in the same row Final solution will be that based on entered data in one cell, different calculated data will be inserted to 3 different cells in the same row