React-big-calendar: Where does the inline styling of the rbc-event div get generated?

Created on 15 Feb 2018  路  3Comments  路  Source: jquense/react-big-calendar

So I have a BigCalendar react app that displays events from two Google calendars. The events are all 30 minutes in length. I would like the cells to be split 50/50 and span edge to edge.

Basically, I need to make the inline styling of the blue events to be:
left: 0%; width: 50%;
Then the red events would be:
left: 50%; width: 50%;

I can't figure out where in the codebase the inline styling for the event div's is generated. If someone could point me to the file that generates the inline style, I can take care of the rest. Thanks

screenshot_69

Most helpful comment

@The-Oracle did you modify the original file?
I don't want to mess with those, is there a way to customize this using another way?
Ideally, I would like my events to have a set width (or one that I can control).

Thanks

All 3 comments

Thanks, I was able to modify it to get the desired result.
screenshot_70

@The-Oracle did you modify the original file?
I don't want to mess with those, is there a way to customize this using another way?
Ideally, I would like my events to have a set width (or one that I can control).

Thanks

Was this page helpful?
0 / 5 - 0 ratings

Related issues

mathieusanchez picture mathieusanchez  路  4Comments

jgautsch picture jgautsch  路  3Comments

ZacharyLangley picture ZacharyLangley  路  3Comments

connercms picture connercms  路  3Comments

KatiaPosPago picture KatiaPosPago  路  3Comments