Change default event Start Time when creating calendar event in Month view
Posted: Wed May 11, 2022 4:45 pm
by lxxrxns
Excuse me for posting this in this sub forum, I'm still on a trial version testing things out to see if Bryntum Calendar can work for me and I can't post in the Calendar forums anymore. Maybe someone can move this topic to the Calendar sub forum? Thanks.
I would like to know if I can set a default start time and end time for an event that is created by double clicking in the Month view or Agenda view. By default, the start time is 08:00 and the end time 09:00, but I would -for example- like to set it to 13:00:
Can this be done with the onEventCreated function?
Calendar doesn't seem to have a listener for beforeEventEditShow like Scheduler does (according to the docs at least), and also I would only want this for NEW events (not when editing another event that already has a set starttime/endtime).
Any help would be greatly appreciated!
Re: Change default event Start Time when creating calendar event in Month view
Remember that if you dblclick in a DayView or WeekView, start time is included in the gesture (The user will click on the time required, and the autoCreate.step will snap it to a boundary), so probably do not intervene if activeView.isDayView (A WeekView is a DayView, but with 7 days)