开发者

FullCalendar inserts 1.5 hours on renderEvent

开发者 https://www.devze.com 2023-03-21 06:01 出处:网络
When I call my FullCalendar 开发者_JS百科like so: dayCalendar.fullCalendar(\'renderEvent\', { title: \"Scheduled Callback\",

When I call my FullCalendar 开发者_JS百科like so:

   dayCalendar.fullCalendar('renderEvent',
     {
    title: "Scheduled Callback",
    start: callbackDate,                            
    allDay: false
     },
     true // make the event "stick"
   );

it sticks in an event with a duration of 1.5 hours even though I haven't set an end date/time. How do I ensure it sets an event with no duration or an event for just 30 minutes. My calendar is set to show events in blocks of 30 mins.


You are looking for the defaultEventMinutes option in your setup for full calendar just set this option to 30.

Documentation is here

I hope this helps!

0

精彩评论

暂无评论...
验证码 换一张
取 消