问题
My application only deals in full day events, so I'd like to be able to only display the allDay section for agendaViews. See screen shot below. I want to hide the areas highlighted in red.
Calendar widget: http://arshaw.com/fullcalendar/
Screens:


回答1:
You overcomplicated it. Check the basicViews, http://arshaw.com/js/fullcalendar-1.6.4/demos/basic-views.html and have your events only with start date
{
title: 'All Day Event',
start: new Date(y, m, d)
}
回答2:
You can use "basicWeek" and "basicDay" view,
$('#myCaledarId').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'month,basicWeek,basicDay'
}
});
来源:https://stackoverflow.com/questions/23044618/fullcalendar-only-display-allday-slot-when-in-agenda-view-weekly-or-daily