[FEATURE] Add duration to event elements for custom styling#304
[FEATURE] Add duration to event elements for custom styling#304ryanomite wants to merge 3 commits intoFamousWolf:mainfrom
Conversation
|
Another option - though I'm not sure how difficult it is to get the total event durations for the entire day when rendering a single event - would be to size the event box proportional to how much of the total event time this event takes for the day. For example: So the first event fills ~24% of the area, the second event ~29%, and the 3rd event ~47% of the area. If an option were provided to scale the events proportional to 24 hrs each day (with a minimum size), then they'd be much smaller but more accurate proportionally to the day. Just a thought. |

Added a separate class to event elements to indicate how long the event is:
This can be then used to add additional style to events based on how long they are. For example, I've made large and xl events have a minimum height style, so they appear "bigger" in my event list.
Finally, added a
data-durationdata attribute (in integer minutes) for utility purposes.