MyHighChartComponent.ts
export class MyHighChartComponent {
highchartsConfiguration: any = {
chart: {
events: {
click(e) {
if (!($(event.target)[0].textContent)) {
console.log('clicked'); //this is printing
this.drillDown(); // how to call typescript function here?
}
},
},
}
};
drillDown() {
console.log('drill down method called');
}
}
How to call a typescript function from inside high charts click event?
I'm getting below error
Error Stack : TypeError: this.drillDownis not a function