Fullcalendar hide events only in month view

My problem is hidding events in a specific view. I need to hide events only in month view. Because in month view i have set on day click to redirect to the specific day in day view. and have colored days which depends on the events.

So i need that for better looking month view, with colored days only. and when i click on a day go to that and then appear all events normally.

I tried with eventLimit but with 0 value show all events.

Any idea?

Thanks


You can use css in order to hide events in month view only.

Code:

.fc-month-view .fc-event-container{
    display: none;
}

Demo: http://jsfiddle.net/IrvinDominin/ecjvb8b7/


我使用这种方法来隐藏指定视图的事件,因为有时它很难更新CSS

eventRender: function(event, element, view) {
  if(view.type == 'month') {
    $(element).css("display", "none");
  } else {
    // Do nothing
  }
}
链接地址: http://www.djcxy.com/p/14266.html

上一篇: FullCalendar仅在周视图和日视图中显示事件,但不能在月视图中显示

下一篇: Fullcalendar仅在月视图中隐藏事件