version 4 had eventRender
and was quite easy to render or not an event as all you had to do was return null
with version 5 (currently on beta 4), that event was replaced with eventContent
and eventClassNames
but I'm struggling to replicate the same idea, so I can easily show resources with and without events in a timeline view
from the upgrade guide it says:
eventContent
- for if you injected DOM content via eventRender. You cannot cancel rendering by returning false however. Instead, attached adisplay:'none'
property on the Event Input.
but if in that event I do that, it still shows the event:
eventContent: (arg) => {
arg.event.display = 'none'
}
what am I missing? What should we return/setup so the event is no longer shown?
I've also tried
eventContent: (arg) => {
return { display: 'none' }
}
but all it does is hide the content of the event itself, does not remove the event, and I end up having the event "frame"