从当前月份删除过去的日期和下个月的日期 [英] Remove past dates and next months dates from the current month

查看:69
本文介绍了从当前月份删除过去的日期和下个月的日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以从fullcalendar删除过去的日期和下个月的日期?因此,对于当前的月份,它应该只显示当前的日期和日期。 您可以尝试跳过eventRender()中的事件,方法:

  eventRender:function(event,element,view)
{
if(event.start .getMonth()!== view.start.getMonth()){return false; }
}


Is it possible to remove the past dates and next month's dates from the fullcalendar? So for the current month it should display only current dates and days.

解决方案

You could try skipping the events in the eventRender() method:

eventRender: function(event, element, view)
{
   if(event.start.getMonth() !== view.start.getMonth()) { return false; }
}

这篇关于从当前月份删除过去的日期和下个月的日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆