How to set maximum and minimum date range in fullcalendar jquery

偶尔善良 提交于 2020-05-15 09:46:28

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!