In dayGridMonth
I want to see a subset of the events, and in listMonth
I want to see all of them.
E.g. in the grid view I don't want to see events with title break
(in my actual case it is a more complex rule: only show unique event titles).
I tried:
eventDidMount: function(info) {
if (info.view.type == 'dayGridMonth' && info.event.title == 'break') {
info.event.setProp('display','none')
}
}
This does hide them, but when switching from dayGridMonth
to listMonth
the hidden events don't come back. I don't mind storing + restoring the original display
value, but the events don't appear at all any more in eventDidMount
after switching views.
How do I "set the property display:none" only for that view?