I have the Pro version of the scheduler library and am trying to use it in an Angular app. I have set up a Gantt chart so I tried to set up the scheduler the same way. I imported Scheduler and SchedulerStatic like this:
import { Scheduler, SchedulerStatic } from ‘libraries/scheduler/dhtmlxscheduler’
then I define the scheduler variable like this:
scheduler: SchedulerStatic
then in the ngOnInit I get the instance like this:
this.scheduler = Scheduler.getSchedulerInstance();
and then in the ngAfterViewInit I init the scheduler like this:
this.scheduler.init(this.schedulerContainer.nativeElement, new Date())
When I run the project I get: Can not read property 'getSchedulerInstance' of undefined