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 calendar which show all day of the week and other button called as "workweek" which will show me only weekends after clicking on it.
suggest me for the same.
Here is my code
<script type='text/javascript'>
$(function() {
var date = new Date();
var d = date.getDate();
var m = date.getMonth();
var y = date.getFullYear();
var calendar = $('#calendar').fullCalendar({
header: {
left: 'prev,next today',
center: 'title',
right: 'agendaDay,agendaWeek,month'
},
selectable: true,
selectHelper: true,
weekends:false,
defaultView: 'agendaWeek',
select: function(start, end, allDay) { //calendar.fullCalendar('unselect');
},
editable: true
});
});
</script
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…