Issue 2311: eventRender custom element without fc-event class should render correctly
Status:  ExportedToGithub
Owner: ----
Closed:  Aug 2015
Reported by alexi...@gmail.com, Oct 7, 2014
eventRender callback documentation has a notice (but doesn't give any example) that you can create you custom event mark up from scratch and return the resulting object. I've tried to do that in week mode and a couple of bugs:
1. Your custom html markup's root node has to have fc-event class. It would be okay to have such a requirement for some conent-less class, but fc-event applies some unrequired styling
2. fc-event-container sets margins to non-zero values. In my opinion fc-event-conainer should not decide how much space in a cell my event will take. So I had to specify the following style to fix it:

    <style type="text/css">
        .fc-event-container {
            margin: 0 !important;
        }
    </style>
Oct 30, 2014
Project Member #1 adamrs...@gmail.com
for your point #2, in v2.1, this should no longer be the case. in 2.1, the margins around the event are determined by the fc-event class

for your point #1, v2.1 relies less on the fc-class. Rather, it more heavily relies on .fc-event-container > *. But still, if the fc-event class is not present, there is somewhat of a layout messup (the element will fail to be display:block for example).

I was hoping the fc-event class would be optional. It would only be required if you want the event to be "skinned" in a standard way.

But there shouldn't be any layout bugs as a result of not having the fc-event class. that is what I will make this issue about. thanks
Summary: eventRender custom element without fc-event class should render correctly (was: Custom events templates in week view do not work as expected)
Status: Accepted
Labels: Type-Bug
Aug 21, 2015
Project Member #2 adamrs...@gmail.com
Discussion for this issue has moved to the following URL:
https://github.com/fullcalendar/fullcalendar/issues/2576

This is because Google Code is shutting down. Apologies if you are being pestered with these notifications. This is a one-time event.

Happy coding,
Adam
Status: ExportedToGithub