question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug while using custom template for openDayEventsTemplate

See original GitHub issue

Describe the bug

the events are being populated in all the rows while using custom template.

Minimal reproduction of the problem with instructions

<mwl-calendar-month-view *ngSwitchCase=“CalendarView.Month” [openDayEventsTemplate]=“customOpenDayEventsTemplate” [viewDate]=“viewDate” [events]=“currentEvents” [refresh]=“refresh” [activeDayIsOpen]=“activeDayIsOpen” (dayClicked)=“dayClicked($event.day)” (eventClicked)=“handleEvent(‘Clicked’, $event.event)” (eventTimesChanged)=“eventTimesChanged($event)”> </mwl-calendar-month-view>

<ng-template #customOpenDayEventsTemplate let-events=“events” let-eventClicked=“eventClicked” let-isOpen=“activeDayIsOpen”> <ion-item-group [@collapse]> <div *ngFor=“let event of events; trackBy:trackByEventId;” [ngClass]=“event?.cssClass” mwlDraggable [dropData]=“{event: event}” [dragAxis]=“{x: event.draggable, y: event.draggable}”> test

</div> </ion-item-group>
</ng-template>

Screenshots 50655440_590880728022222_4968931150316699648_n

Versions

  • @angular/core: 6.0.9
  • angular-calendar: ^0.26.4
  • Browser name and version:

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:7 (2 by maintainers)

github_iconTop GitHub Comments

5reactions
mattlewis92commented, Feb 3, 2019

Ahh, I see what happened here, I think you might have copied the template from an older issue, please see the latest template source here, here’s your example fixed: https://stackblitz.com/edit/angular-jqsjdc-gahtmy?file=demo/component.ts Hope that helps! 😄

2reactions
mattlewis92commented, Jan 23, 2019

Please can you add a runnable stackblitz that reproduces your problem? You can fork a starter from any of the demos pages. Thanks! 😄

Read more comments on GitHub >

github_iconTop Results From Across the Web

Developers - Passing a custom openDayEventsTemplate with ...
Describe the bug. I would like to pass a custom openDayEventsTemplate to the mwl-calendar-month-view to show the events with my custom style ...
Read more >
angular-calendar documentation - GitHub Pages
when using the moment date formatter, the day view title format has changed ... month-view: If using a custom openDayEventsTemplate for the month...
Read more >
Newest 'angular-calendar' Questions - Stack Overflow
I am trying to create a custom day event template for Angular 14.0+ Calendar and I cannot figure out why my events are...
Read more >
Angular (forked) - StackBlitz
For details on how to customise any of the. templates, please see. <a. href="https://github.com/mattlewis92/. angular-calendar#how-do-i-use-a-custom-tem.
Read more >
angular-calendar - UNPKG
util';\n\n/**\n * This will use the angular date pipe to do all date ... openDayEventsTemplate: TemplateRef<any>;\n\n /**\n * A custom template to use...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found