Our pure JavaScript Scheduler component


Post by rytis.i »

I want to add modifiedAt timestamp to each event, I'm struggling to find the right place to set the value. I've tried EventStore.onChange but that causes stack overflow for new events. Should I use afterEventDrop and eventResizeEnd events or is there better way to achieve this?


Post by marcio »

Hey rytis.i,

Thanks for reaching out.

Perhaps you could use https://bryntum.com/products/schedulerpro/docs/api/Core/data/Model#property-hasGeneratedId to check if that's true and add the timestamp to the model?

It's fine to use the drop/resize events, but the change approach would be better to have the logic in one place.

Best regards,
Márcio


Post Reply