alexkatz / react-tiny-popover

A simple and highly customizable popover react higher order component with no other dependencies! Typescript friendly.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Could the Popover be controlled by a click event?

baba43 opened this issue · comments

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?

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

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!