开发者

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

开发者 https://www.devze.com 2023-01-08 13:17 出处:网络
I have setup a google calendar using the gcal.js from f开发者_如何转开发ullcalendar which displays a month view easilty enough.

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

精彩评论

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