Our pure JavaScript Scheduler component


Post by Hiba Rizk »

hello,

thanks for your help. but can you advice where should i use this code
as it's returning errors

note that i'm using angular wrapper as in the previously attached demo

Post by sergey.maltsev »

Hi!

You could add it to your main module like app.component.ts and suppress typescript warnings with // @ts-ignore
import { Scheduler, Override,  Rectangle } from 'bryntum-scheduler/scheduler.umd.js';
...
class SchedulerOverride {
    static get target() {
        return {
            class : Scheduler
        };
    }
    getDateFromDomEvent() {
        // @ts-ignore
        this._bodyRectangle = Rectangle.client(this.bodyContainer);
        // @ts-ignore
        return this._overridden.getDateFromDomEvent.call(this, ...arguments);
    }
}
Override.apply(SchedulerOverride);

Post Reply