Our pure JavaScript Scheduler component


Post by nate »

Thanks for all your help so far.

I have what I hope isn't a stupid question. What's the correct way to provide a custom event store? I'm trying to turn on syncDataOnLoad. Here's what I've done

    config.eventStore = new EventStore({ syncDataOnLoad: true });
    const engine = (this.schedulerEngine = new Scheduler(config));

We are setting events and resources directly on the scheduler, we haven't explicitly configured projects.

It gives this error:

core.js:4352 ERROR TypeError: project.getGraph is not a function
    at ClassDefEx.getGraph (schedulerpro.module.js:101388)
    at ClassDefEx.joinProject (schedulerpro.module.js:101611)
    at ClassDefEx.joinStore (schedulerpro.module.js:101564)
    at schedulerpro.module.js:26518

Thanks in advance


Post by pmiklashevich »

Well, it's hard to say only by the piece of code. The best way is to modify one of our examples and submit a runnable testcase showing the issue. It's very important how you import the classes. Keep in mind SchedulerPro extends Scheduler. I suppose you're importing from SchedulerPro bundle and the import is something like

import { SchedulerPro as Scheduler } from '../../build/schedulerpro.module.js';

Otherwise Scheduler is a simple scheduler whose project does not use chronograph.

Pavlo Miklashevych
Sr. Frontend Developer


Post Reply