Popover Render Hooks

Customize the popover that opens when the user clicks a more-link, and its close button.

popoverClass - a ClassName Input for the outermost popover element. Accepts a string only, not a function. The popover is rendered in <body>, outside the calendar. To change its z-index, set the --fc-popover-z CSS variable instead of using a z-index class. See z-index.

popoverCloseClass - a ClassName Input for the close button. Accepts a string only, not a function.

popoverCloseContent - a Content Injection Input. Generated content is inserted inside the close button, typically an icon. There is no default content; the bundled themes supply their own icon. The button’s accessible label comes from closeHint.

The popover’s header and body reuse other hooks. The header takes the Day-Header Render Hooks, and the body takes dayCellClass and dayCellInnerClass from the Day-Cell Render Hooks. In both, info.inPopover is true, so you can style the popover differently from the rest of the view. The header’s date format is set by popoverFormat.

In resource views, the popover’s header, body and events receive info.resource, the resource of the column or lane whose more-link opened it.