Hide times for all-day events in fullcalender

  • Liam Hanks
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 2 months ago #149364 by Liam Hanks
Is there a way to hide the event start times for all-day events in the Fullcalendar view? I had been using a bit of a workaround up until now, but with the recent javascript changes in v4, it no longer appears possible. I still want to be able to see the start time for events that - for example - don't start at 00:00. Is this possible?

Thanks

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #149474 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide times for all-day events in fullcalender
Hi Liam

Could you please send me link to the page and explain the changes you want so that I can look at it and find a solution?

Tuan

Please Log in or Create an account to join the conversation.

  • Liam Hanks
  • Topic Author
  • Offline
  • Junior Member
  • Junior Member
More
3 years 2 months ago - 3 years 2 months ago #149569 by Liam Hanks
Replied by Liam Hanks on topic Hide times for all-day events in fullcalender
Hi Tuan,
unfortunately, this is a development site running internally so I can't share directly links to the site. Here's a screencap that shows what I'm looking at:  bit.ly/3uxOyl0

What I'd like is to be able to see the start time of the first event (13:00), but hide the time for any events that start at 00:00 (they're all-day events). Up until now, I had been using a template override to add a data- attribute with the time as its value to the time element in the calendar (which I could then select with a CSS style), but I can't find a way of doing that with version 4 without editing the component's javascript files (which I obviously don't want to do). Another option would be a "All-day event" option in the event configuration that would disable start/end times (this would be a wonderful feature!), but I'm open to any suggestions you might have.

Thanks!
 
Last edit: 3 years 2 months ago by Liam Hanks.

Please Log in or Create an account to join the conversation.

More
3 years 2 months ago #149584 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Hide times for all-day events in fullcalender
Hello Liam

I found a solution. Please submit a support ticket so that I can send you updated version which handle this case properly

Otherwise, wait for 4.0.2 release and update, then everything will work welll

Regards,

Tuan

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc