Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to know which day does my custom "event template" exist? #1039

Closed
Khanbhai1990 opened this issue Jul 17, 2019 · 5 comments
Closed

How to know which day does my custom "event template" exist? #1039

Khanbhai1990 opened this issue Jul 17, 2019 · 5 comments

Comments

@Khanbhai1990
Copy link

Khanbhai1990 commented Jul 17, 2019

Describe the bug
I need to know which day of the week does my "event template" exist in order to do certain calculations. Right now the "event" object doesn't consist which day it belongs to, like in the "day" object past down by "cell template". Does anyone has a solution for this problem?

<ng-template #eventTemplate let-weekEvent="weekEvent" let-locale="locale"> {{weekEvent.event.title}} </ng-template>

weekEvent object doesn't have a date object I could utilize for my project.

  • @angular/core: 7
  • angular-calendar: 6
  • Browser name and version: chrome

Cheer!!

@matts-bot
Copy link

matts-bot bot commented Jul 17, 2019

Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider supporting me on Patreon

@Khanbhai1990
Copy link
Author

Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider supporting me on Patreon

Done!

@mattlewis92
Copy link
Owner

Thanks so much for opening an issue! If you'd like me to give priority to answering your issue or would just like to support this project, then please consider supporting me on Patreon

Done!

Thank you so much for backing this project! I really appreciate the donation ❤️

I need to know which day of the week does my "event template" exist in order to do certain calculations. Right now the "event" object doesn't consist which day it belongs to, like in the "day" object past down by "cell template". Does anyone has a solution for this problem?

Just to be clear, this is for events that span multiple days on the week view? So like the one highlighted in red here:
image

@Khanbhai1990
Copy link
Author

Yes!
Would love to know if my custom ng template for event template is referring to July 18 or July 19

@mattlewis92
Copy link
Owner

I just added this in 0.27.14 for you! 😄 In your custom event template you can now do <ng-template let-column="column"> {{ column.date }} </ng-template>. Let me know if that works for you 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants