vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views
https://vkurko.github.io/calendar/
MIT License
969 stars 82 forks source link

Can be time hidden for allDay events in dayGridMonth view? #143

Closed dimakovalevskyi closed 1 year ago

dimakovalevskyi commented 1 year ago

Hello, thanks for your library!

Can time be hidden for allDay events in dayGridMonth view?

Can we get something like this

image

Instead of this

image

This could be solved manually if these events had a specific class on ec-event element like ec-event-all-day. But it doesn't have :

image
vkurko commented 1 year ago

Hello @dimakovalevskyi

You can completely override event rendering using the eventContent option. I've prepared a demo for you.

In the future, it will be possible to add custom classes to events, so the method you suggested will also work.

vkurko commented 1 year ago

Actually I think that such a rendering option, when div.ec-event-time is missing for allDay events, I will make it default.

dimakovalevskyi commented 1 year ago

Awesome, thank you!

vkurko commented 1 year ago

Actually I think that such a rendering option, when div.ec-event-time is missing for allDay events, I will make it default.

@dimakovalevskyi This is now implemented in v1.4.0. Please check.

dimakovalevskyi commented 1 year ago

Yeah, thank you!