简体   繁体   中英

want to display 3 day at a time in week view of fullcalendar plugin

I am working on jquery fullcalendar plugin.I did code for, by default, shows entire week view but I want to display 3 day at a time and after onclick button display next days.How can I do this?

enter code here

$('#calendar').fullCalendar({ defaultView: 'agendaWeek',

});

This is explained rather well in the documentation .

What you want is probably something like this: http://jsfiddle.net/z0au4L8x/1/

$('#calendar').fullCalendar({
    header: {
        center: 'agendaThreeDay' // buttons for switching between views
    },
    views: {
        agendaThreeDay: {
            type: 'agenda',
            duration: { days: 3 },
            buttonText: '3 day'
        }
    },
    defaultView:'agendaThreeDay'
});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM