javascript - want to display week and day only in fullcalendar plugin -


i working on jquery fullcalendar plugin. plugin, default, shows entire , week. however, want display week , day. changed options when user loads page shoudl automatically load week calendar still loads month , view week user has click on week tab see it. how can change default behavior user see week calendar when loads website?

$('#calendar').fullcalendar({     header: {         left: 'prev,next today',         center: 'title',         right: 'agendaweek,agendaday',         ignoretimezone: false     },     selectable: true,     selecthelper: true,     editable: true,     events: 'events' }); 

just add defaultview: 'basicweek' fullcalendar option:

$('#calendar').fullcalendar({     defaultview: 'basicweek' }); 

check documentation

demo


Comments

Popular posts from this blog

ios - iPhone/iPad different view orientations in different views , and apple approval process -

java Extracting Zip file -

C# WinForm - loading screen -