Custom cell template for angular-calendar-week-view

1.3k views Asked by At

Can you please let me know if there any way to customize the cell template in week view? Currently I'm using something like:

<mwl-calendar-week-view
          *ngSwitchCase="CalendarView.Week"
          [viewDate]="viewDate"
          [events]="events"
          [refresh]="refresh"
          (eventClicked)="dayEventClicked($event.event)"
          (eventTimesChanged)="eventTimesChanged($event)"
          [eventTemplate]="customCellTemplateWeekly">
        </mwl-calendar-week-view>
        <ng-template #customCellTemplateWeekly  let-day="day" let-locale="locale">
---------
</ng-template>

But I'm not getting the events inside the ng-template so that I can render it accordingly. Am I doing something wrong here?

0

There are 0 answers