pranjali
pranjali

Reputation: 13

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',

});

Upvotes: 0

Views: 2197

Answers (1)

Daniel Wärnå
Daniel Wärnå

Reputation: 788

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'
});

Upvotes: 4

Related Questions