Hello!
I’m updating Handsontable from 6.2.2 to 9.0.1.
Already fix some things, but I’m having some problems to replace some code.
-
In old formulas plugin it was possible to access the parser by using this code:
hot.getPlugin('formulas').sheet.parser
Is there a way of doing it in Hyperformulas?
Use cases:
-
I want to set a listener for ‘callCellValue’ and ‘callRangeValue’ like this:
hot.getPlugin('formulas').sheet.parser.on('callCellValue', this.cellContentListener); hot.getPlugin('formulas').sheet.parser.on('callRangeValue', this.cellRangeListener);
-
I want to use parse function, like this:
const res = hot.getPlugin('formulas').sheet.parser.parse(newValue.split('=')[1].toUpperCase());
if(res.error === '#VALUE!') { // some code }
-
-
In old formulas plugin it was possible to get the number of cells with formula in sheet by using this code:
hot.getPlugin('Formulas').sheet.matrix.data.length;
Is there a way of doing it in Hyperformulas?
Thank you for your attention.