vkurko / calendar

Full-sized drag & drop JavaScript event calendar with resource & timeline views

Home Page:https://vkurko.github.io/calendar/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can be time hidden for allDay events in dayGridMonth view?

dimakovalevskyi opened this issue · comments

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

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.

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

Awesome, thank you!

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.

Yeah, thank you!