开发者

Using full calendar gcal.js I'm trying to get a day view instead of month view

I have setup a google calendar using the gcal.js from f开发者_如何转开发ullcalendar which displays a month view easilty enough.

What I really want to do is display this calendar in a single day or agenda view instead of the default month view but I cannot for the life of me find any reference to whether this is possible.


You need to use the defaultView option and set the value to 'basicDay' or 'agendaDay' as listed in Available Views.

Code should look like:
$('#calendar').fullCalendar({
header: { left: 'prev, next today', center: 'title', right: 'month, basicWeek, basicDay' }, defaultView: 'basicDay'
});

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜