ce
ce copied to clipboard
add row in jexcel angualr
sir i m facing a problem, i m not able to understand how i can add new row in jexcel in angular , i m using typescript so can u help me to add new button without jquery
This is the script: https://codesandbox.io/s/pensive-curie-bpve3
thanku sir for reply me, can u tell me how i van change cell value after onchange event
https://codesandbox.io/s/twilight-hooks-moq79
export class AppComponent {
@ViewChild("spreadsheet") spreadsheet: ElementRef;
@ViewChild("button") button: ElementRef;
title = "an";
ngAfterViewInit() {
var t = jexcel(this.spreadsheet.nativeElement, {
minDimensions: [40, 10],
onchange: function (element, cell, x, y, value, oldValue) {
alert(value);
}
});
this.button.nativeElement.onclick = function () {
t.insertRow();
};
}
}