Primeng: Schedule eventRender issue

Created on 20 Oct 2016  路  2Comments  路  Source: primefaces/primeng

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);
}

Most helpful comment

Just try:

<p-schedule [eventRender]="eventRender"></p-schedule>
eventRender(event, element, view) {
  console.log(event, element, view);
}

All 2 comments

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.

Was this page helpful?
0 / 5 - 0 ratings