MyCustomHighChart.ts
export class MyCustomHighChart {
highchartsConfiguration: any = {
chart: {
events: {
click(event) {
if (!($(event.target)[0].textContent)) {
console.log('clicked'); //this message is being displayed
this.callDrillDown(); // Is it possible to invoke a TypeScript function here?
}
},
},
}
};
callDrillDown() {
console.log('calling drill down method');
}
}
Is there a way to trigger a typescript function within a high charts click event?
I encountered the following error
Error Stack : TypeError: this.callDrillDown is not a function