# eventRender

> FullCalendar v3 documentation, for an old release. Web version: https://legacy.fullcalendar.io/v3/eventRender
>
> Latest version (v7): https://fullcalendar.io/docs/event-render-hooks.md

Triggered while an event is being rendered. A hook for modifying its DOM.

<div class='spec' markdown='1'>
function( *event*, *element*, *view* ) { }
</div>

`event` is the [Event Object](https://legacy.fullcalendar.io/v3/event-object.md) that is attempting to be rendered.

`element` is a newly created jQuery element that will be used for rendering. It has already been populated with the correct time/title text.

The `eventRender` callback function can modify `element`. For example, it can change its appearance via jQuery's `.css()`.

The function can also return a brand new element that will be used for rendering instead. For all-day [background events](https://legacy.fullcalendar.io/v3/background-events.md), you must be sure to return a `<td>`.

The function can also return `false` to completely cancel the rendering of the event.

`eventRender` is a great way to attach other jQuery plugins to event elements, such as a [Tooltip.js](https://popper.js.org/tooltip-examples.html) tooltip effect:

```js
$('#calendar').fullCalendar({
  events: [
    {
      title: 'My Event',
      start: '2010-01-01',
      description: 'This is a cool event'
    }
    // more events here
  ],
  eventRender: function(eventObj, $el) {
    $el.popover({
      title: eventObj.title,
      content: eventObj.description,
      trigger: 'hover',
      placement: 'top',
      container: 'body'
    });
  }
});
```

Note that `description` is a non-standard Event Object field, which is allowed.

[See a live demo with Tooltip.js &raquo;](https://legacy.fullcalendar.io/v3/event-tooltip-demo)

A single event can also have multiple elements. This can be seen in the case of an agendaWeek event spanning multiple columns, where each event “segment” (individual span of time after slicing) is rendered with individual elements. DOM manipulation is allowed on each element in the event instead of just the first element.

When registering callbacks, the user should expect a single callback to be triggered for each segment of the event. In other words, an event spanning two columns will trigger two callbacks, with three columns triggering three callbacks, and so forth.
