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

Showing multi-day events on the calendar with CSS #541

Open
TitoSniberb opened this issue May 7, 2020 · 6 comments
Open

Showing multi-day events on the calendar with CSS #541

TitoSniberb opened this issue May 7, 2020 · 6 comments

Comments

@TitoSniberb
Copy link

I'd like to know if its possible to do this:
image

As shown on the image, for example for the days 09, 10 and 11, I'd like to mark on the calendar multi-day events just like that. Would that be possible? And if yes, how would you handle it if there's a multi-day event going form the 7th to the 8th or more?

Thanks anyways!

@twinssbc
Copy link
Owner

@aldimirprincipal Unfortunately this is not supported by default. You may be able to use monthviewDisplayEventTemplate option provide some custom look and feel. But you also need to consider what if there are multiple events happen on a single day, how do you want to display them?

@TitoSniberb
Copy link
Author

@twinssbc My idea was having it the same way google does, adding more space if needed. Thanks for the answer tho!

One last question, how could I get the date of the current selected day?
image
The "15 MAR" is hard-coded right now, and I would want to show the day the user selected. How would I do that in the html?
image

@twinssbc
Copy link
Owner

@aldimirprincipal When you use the calendar, you will bind a a currentDate variable. When the selected date is changed, the currentDate will also be changed.

@TitoSniberb
Copy link
Author

@twinssbc currentDate as itself is not anything, but if I use calendar.currentDate it gives me Monday 05 for all days.
image

image

@twinssbc
Copy link
Owner

@aldimirprincipal Could you provide more code to show how do you use the calendar in HTML?

@TitoSniberb
Copy link
Author

@twinssbc Sure! Here it is:
image
and in the ts:
image

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