The full calendar documentation says the eventRender function should pass the event that is being rendered to the function. This doesn't seem to be the case in the Schedule attribute. logging event variable produces undefined.
<p-schedule *ngIf="events"
[events]="events"
[header]="header"
[editable]="true"
[eventRender]="eventRender(event)"
(onDayClick)="handleDayClick($event)"
(onEventClick)="handleEventClick($event)">
</p-schedule>
eventRender(event) {
console.log(event);
}
Just try:
<p-schedule [eventRender]="eventRender"></p-schedule>
eventRender(event, element, view) {
console.log(event, element, view);
}
The above syntax is proper to invoke full-calendar functions. Hence this is not the issue.
Most helpful comment
Just try: