开发者

Jquery, Full Calendar, weekly agenda

I'm using the jQuery Full Calendar control to display a student schedule,

I've got it pretty much working how we want, but I want to limit the previous and next buttons to only cover a specified range (the tw开发者_开发百科o weeks in question).

Is this possible?


As far as I know, there is no native way to do this, but...

fullcalendar.js has two functions in the /* Date */ section called prev() and next(). When the user clicks on the 'next' button, you could disable it to prevent them from navigating any further. When they click 'prev' you could then re-enable the 'next' button and disable the 'prev' button. This would give the user only 2 weeks to play with.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜