Reputation: 9570
I am using the fullcalendar plugin and would like to change it a little bit - I want the default to be month view , but able to scroll down and continue into the next month, does anyone know if there is an add on , or anyway to start going about editing the fullcalendar?
Upvotes: 7
Views: 3843
Reputation: 996
You could accomplish as follows:
Like this:
Multiple FullCalendars on a single page
with options
Upvotes: 1
Reputation: 1153
There is no direct way in fullcalendar to show two months. for your requirement you need to merge fullcalnder with darepicker ahow one small datepicker above the fullcaleder and one click of datepicker call goto methode of fullcalendar to jump at requried date.
$(document).ready(function()
{
$("#datepicker" ).datepicker({
numberOfMonths: 2,
showButtonPanel: false,
minDate:0,
onSelect: function(dateText, inst)
{
selected_date = dateText;
$('#calendar').fullCalendar('gotoDate',new Date(Date.parse(selected_date)));
}
});
});
Upvotes: 1