How to prevent fullcalendar to show the start
in the monthview fullcalendar has the nice feature to show the start time in the top line of non-allDay events. This might be useful if you don't want to provide further details in the event title.
I want to show several details in the month view, like start and end time (15.00 - 18-00), location, etc.
This leads to the fact that fullcalendar shows my events like this: "15 15.00 - 18.00".
Is there any way to prevent fullcalendar from showing the start time OR is there any way to get fullcalendar to show the full timespan (15.00 - 18.00)?
Thanks. Alex
This is what you are looking for...
http://arshaw.com/fullcalendar/docs/text/timeFormat/
timeFormat: 'H(:mm)' // uppercase H for 24-hour clock
I beleive if you want to remove it all you would have to do is include an empty string aka...
timeFormat: ''(, or no , depending on if there is another object following)
Try this, it works for me:
$('#calendar').fullCalendar({
displayEventTime : false
});
That should prevent fullcalendar to show the start-hour in the event headline.
正如@Isaak Kleinman在评论中所说,这是正确的语法:
timeFormat: ' ', //with the space
链接地址: http://www.djcxy.com/p/81238.html
上一篇: FullCalendar v2:在月份中选择日期会返回不正确的开始日期或结束日期
下一篇: 如何防止fullcalendar显示开始