Could the Popover be controlled by a click event?
baba43 opened this issue · 2 comments
baba43 commented
I would like to add a button with popover to a Fullcallender.
Fullcalendar provides a simple mechanism for adding buttons in general:
myCustomButton: {
text: 'custom!',
click: function(clickEvent, buttonElement) {
alert('clicked the custom button!');
}
}
Sadly, this way we can only provide onClick
handlers but no HTML and also no React components.
That is why I'd like to ask if and how I might integrate react-tiny-popover
in a situation like this?
afraser commented
this library is built on react so it probably doesn't make sense for your use case unless you plan on adopting react as well
alexkatz commented
It looks like FullCallendar supports JSX content injection, which should allow you to use react-tiny-popover
normally. If you try this out and experience some difficulty, feel free to reopen this issue. Thanks!