Showing Both Weekdays And Weekends On The Same Fullcalendar
I want to show both all days of the week and weekdays as well on the same full calendar.i want to have two button on the calendar one called as 'week' which is already on the full
Solution 1:
Duplicate of FullCalendar switch between weekends and no weekends
so this answer only works if you remove the previous copy of the calendar from the DOM
http://arshaw.com/fullcalendar/docs/usage/
HTML:
<input type="button" id="weekends" value="Include weekends" />
<input type="button" id="workweek" value="Exclude weekends" />
JavaScript
$(function() {
$("#weekends").on("click",function() {
$('#calendar').fullCalendar({weekends:true});
});
$("#workweek").on("click",function() {
$('#calendar').fullCalendar({weekends:false});
});
});
to test my suggestion try pasting this
javascript:(function() {$('#calendar').fullCalendar({weekends:false})})()
into the location bar on this page and press enter (in Fx 15+ use the console or create a bookmark)
http://arshaw.com/js/fullcalendar-1.5.4/demos/external-dragging.html
Post a Comment for "Showing Both Weekdays And Weekends On The Same Fullcalendar"