Our pure JavaScript Scheduler component


Post by Valentin »

Hi,

I'm using eventRenderer function and tplData for changing view my event and it works fine.

It is possible to render different event layout based on the scheduler viewPresset? I mean when I change view preset from week to month want to see another layout for an event.

Thanks.

Post by saki »

You can bind the eventRenderer so that it runs in the scope of Scheduler and then you can access the active viewPreset inside the renderer this way:
if(this.viewPreset.name === 'something') {
    return eventLayoutSomething;
}
return eventLayoutSomethingElse;

Post Reply