I am wondering if there is an option that i'm missing within FullCalendar.
I currently have the default view to be 'month'. But what I would like to happen is have it that IF the user views the "week" view, that the next time the user visits the website that the "week" view will show instead of the month. I am wondering about setting this out without using a DB.
I know jQuery UI Tabs has this ability using the 'cache' feature... is this something I can implement here as well? If so, how?
Any direction would be appreciative.
changeView doesn't work, as viewDisplay is called before it when the calendar is setup.
here's what works:
in the initializing object, add:
defaultView: $.cookie('fullcalendar_defaultView') || 'month',
viewDisplay: function(view) { $.cookie('fullcalendar_defaultView', view.name); }
You can store this setting in a cookie using jQuery.cookie
which is the library that the Tabs uses. How you handle this and where it is setup is more of a question that you need to answer, since you provided no code.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With