question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

slotDuration of "24 hours" displays events differently than slotDuration of "1 day"

See original GitHub issue

[FEATURE REQUEST] Currently, the event width is calculated based on the length of the timespan image While this is an absolutely valid representation of the data, I would like to to have an option for rendering this as a full-day event to fit all the needed event metadata in the event card.

I have checked the source code but seems like only the event data is used and there is no way to adjust the size of the rendered event (would be happy to hear that I am wrong though). Hacking the Seg.eventRange.instance manually to set the adjust the start/end helps, but this is obviously not a valid option

Unfortunately, converting events to alllDay is not an option for me because it also affects the event model, while I only need the UI to be adjusted.

I remember that the rendering used to be different in the 3.x.x versions: the events range was rounded to the bounds of the slots and then events were stacked vertically

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:5
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
acerixcommented, Jun 26, 2019

Thanks for the demo and info. Does it work to use slotDuration as “1 day”?

https://codepen.io/acerix/pen/pXWVXZ?editors=0010

1reaction
quasiunafantasiacommented, Jun 26, 2019

demonstration: https://codepen.io/quasiunafantasia/pen/EBvBEo i am looking for an option to extend the event width to the width of the column(s) containing this event

so if I have an event starting at 9:00 and ending at 9-30 I would like it still to have a width of a day column, not 1/48 of a day column which is really tiny

basically i would like to have an option to have the event displayed width adjusted to the slot(s) start/end so that the short events would be still visible

Read more comments on GitHub >

github_iconTop Results From Across the Web

slotDuration - Docs - FullCalendar
slotDuration. The frequency for displaying time slots. Duration, default: '00:30:00' (30 minutes). 10% of profits donated to effective charities.
Read more >
FullCalendar SlotDuration 24:00 and weekNumbers
Does anyone know of a solution where both my custom date / column format will work, but that I will also get my...
Read more >
Re: help to exclude weekend events in a timechart
in the search below which displays a timechart, I stats events ... Since there are 24 hours in a day, you will have...
Read more >
Determining available time slots(for scheduling) - Laracasts
I've managed to use background events & constraints to display/restrict events ... With a minimum slot duration of 1 hour I'd end up...
Read more >
Hi how can I change the appointment times into 15 minutes in ...
If you search the HTML code for "00:30:00" you will find the default slotDuration key/value. I was able to change this to other...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found