Our pure JavaScript Scheduler component


Post by gregc »

So as a work around I have this clunky code to override the default editor popping up when you double click on an event.

listeners: {
    eventEditBeforeSetRecord({
        source: editor,
        record: eventRecord
    }) {
        popupMyCustomForm();
        throw new Error('Cancelling default editor');
        
} }

But it writes an ugly exception to the browser console. Is there a better way to achieve this?

Last edited by gregc on Tue Mar 02, 2021 1:11 pm, edited 1 time in total.

Post by mats »

Yes, no need for such hacks. Just disable the default editor if you don't want it, docs: https://bryntum.com/docs/scheduler/#Scheduler/feature/EventEdit

const scheduler = new Scheduler({
    features: {
        eventEdit: false
    }
})

Or prevent editing using the https://bryntum.com/docs/scheduler/#Scheduler/feature/EventEdit#event-beforeEventEdit event.


Post Reply