Skip to content

popupDetailBody implementation #1279

Answered by adhrinae
jellypizza asked this question in Q&A
Discussion options

You must be logged in to vote

That's just a default template value. the popupDetailBody template function takes the EventObject itself and you can leverage it.

First, you need to set an arbitrary value to the body property. because the detail popup doesn't expose the popupDetailBody template if the body property is empty.

{body && (
<div className={classNames.detailItemSeparate}>
<span className={classNames.content}>
<Template template="popupDetailBody" param={event} as="span" />
</span>
</div>
)}

and I suggest you store any extra values in the raw property of the event…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by adhrinae
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants