setValue is not working inside onchange() in angular
onchange(instance, cell, x, y, value) { console.log(instance); // var position = cell.attr('id').split('-'); // console.log(position); console.log(this.table.data); console.log(cell); console.log(x); console.log(y); this.table.setValue('A1','text'); console.log(jexcel.getColumnNameFromId([x,y])); console.log('New change on cell ' + jexcel.getColumnNameFromId([x,y]) + ' to: ' + value + ''); //jexcel(this.spreadsheet).getColumnNameFromId([x,y]); return true; }
this is my code and when i use this it shows me error
core.js:6189 ERROR TypeError: this.table.setValue is not a function at Object.onchange 👍
Change: this.table.setValue to instance.jexcel.setValue
sir this is also not working . show me this error core.js:6189 ERROR TypeError: instance.setValue is not a function at Object.onchange
plz reply its urgent
Change: this.table.setValue to instance.jexcel.setValue
thanks for reply but this is not working