Adding a popup to a custom perspective component


I am developing a custom scheduler module for perspective and I am having some trouble with popups. I would like to be able to click on a task in the scheduler and for a popup to appear (I have attached a screenshot of what I mean). Is this possible in perspective? Currently, when I click on a task the popup appears below the scheduler and loses some formatting.

Thank you :slight_smile:

(I am not a Perspective, React, or JS expert)

It looks like you want to use the ComponentModal React class as the base for your popup - from the docstring, it will automatically display where it can fit, and size appropriately for mobile devices.

1 Like