问题
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
回答1:
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/
回答2:
i'm using this method to hide events of specified view because sometimes its hard to update css
eventRender: function(event, element, view) {
if(view.type == 'month') {
$(element).css("display", "none");
} else {
// Do nothing
}
}
来源:https://stackoverflow.com/questions/33100954/fullcalendar-hide-events-only-in-month-view