How do I rerender FullCalendar when subscribed to an event?
BTW, the code below works perfectly. If there is new information, although it does load, it does not get displayed until you refresh the page.
is there a way to make this live & dynamic?
Code below:
this.store.select(fromEvents.selectAll)
.subscribe(a => {
this.events = a;
$('#calendar').fullCalendar( 'rerenderEvent' )
});
FYI, I've tried the following as well:
$('#calendar').fullCalendar( 'renderEvent', this.events )
$('#calendar').fullCalendar( 'refetchEvent' )
I also follow this post below:
rerenderEvents / refetchEvents problem
the code below works almost perfectly. It feels live & dynamic... but I am unable to delete
this.store.select(fromEvents.selectAll)
.subscribe(a => {
this.events = a;
$('#schedule').fullCalendar('removeEvents');
$('#schedule').fullCalendar('addEventSource', a);
$('#schedule').fullCalendar('rerenderEvents');
});
Technically speaking, should the code below be able to render whatever is in the array?
$('#calendar').fullCalendar( 'refetchEvent' )
Thanks all for the help in advance