Identifying newly created event

Hello,

I am using:
scheduler.config.details_on_create=true;
to open the scheduler lightbox after event creation by drag and drop or double click.

When starting the lightbox (I am using a custom lightbox) i now need a way to identify whether the event that is displayed in the lightbox was newly created (compared to normal lightbox start ups of already existing and saved events).

I tried attachEvent on
onBeforeEventCreated
but it fires before the drag and drop operation has finished.

The purpose is to display a special lightbox element only the first time the lightbox is opened right after the event creation.

Any idea how to do this?

Thanks in advance,
Benedikt.

Hmm, to be more specific:
The purpose is to display a different custom lightbox so it would be necessary to have the information whether this was a newly created event at scheduler.showLightbox but before scheduler.startLightbox, so I can have my logic in the scheduler.showLightbox function and start the right lightbox with scheduler.startLightbox there.

Best Regards,
Benedikt.

you can use scheduler.getState().new_event

docs.dhtmlx.com/scheduler/api__s … state.html

That works great, thanks a lot.