Discuss anything related to web development but no technical support questions


Post by natalie321 »

const scheduler = new Scheduler({
    appendTo  : 'container',
    startDate: new Date(2026, 0, 1),
    endDate  : new Date(2026, 0, 10),

resources : [
    { id : 1, name : 'Resource 1' }
],

events : [
    {
        id         : 1,
        resourceId : 1,
        name       : 'Event A',
        startDate  : '2026-01-02',
        endDate    : '2026-01-04'
    }
]
});

// update after render
const event = scheduler.eventStore.getById(1);

// different update attempts
event.name = 'Updated name';
// event.startDate = new Date(2026, 0, 3);

// store shows updated data but UI does not always update

What is the correct way to update existing event records so the Scheduler UI reliably reflects changes made after render? Is direct mutation supported, or must all updates go through a specific API or transaction to trigger re-rendering?
Geometry Dash


Post by tasnim »

Hi there,

Your code looks correct! Isn't it working for you? Are you facing any issues with that?

Attachments
KVoVqUpmcZ.png
KVoVqUpmcZ.png (312 KiB) Viewed 1935 times

Best regards,
Tasnim

How to ask for help? Please read our Support Policy


Post Reply