问题
i am working in FullCalendar v2.2.5. i need to set max and min date in my full calender same as we do in datepicker. Disable all those dates before min date and after max dates. Please help me to sort out this issue. Thanks in advance ..
回答1:
For v3.3.1 for me works validRange
validRange: {
start: '2017-05-01',
end: '2017-06-01'
}
https://fullcalendar.io/docs/current_date/validRange/
回答2:
$('#calendar').fullCalendar({
defaultView: 'month',
visibleRange: {
start: '2017-03-22',
end: '2017-03-25'
}
});
This will make only the defined date range visible in full calendar. Just put your desired start and end date with in above piece of code.
来源:https://stackoverflow.com/questions/43132961/how-to-set-maximum-and-minimum-date-range-in-fullcalendar-jquery