# Adding a popup to a custom perspective component

**URL:** <https://forum.inductiveautomation.com/t/adding-a-popup-to-a-custom-perspective-component/42473>\
**Category:** Module Development\
**Tags:** perspective\
**Created:** [January 21, 2021, 7:29am UTC](https://forum.inductiveautomation.com/t/adding-a-popup-to-a-custom-perspective-component/42473 "2021-01-21T07:29:31Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kirsty](https://avatars.discourse-cdn.com/v4/letter/k/e274bd/32.png) [@kirsty](https://forum.inductiveautomation.com/u/kirsty)\
**Post date:** [January 21, 2021, 7:29am UTC](https://forum.inductiveautomation.com/t/adding-a-popup-to-a-custom-perspective-component/42473/1 "2021-01-21T07:29:31Z")

</div>

Hello,

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 🙂

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/b/6/b6ad7b717619554574adafdf226f861027cd8820.png)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 21, 2021, 5:28pm UTC](https://forum.inductiveautomation.com/t/adding-a-popup-to-a-custom-perspective-component/42473/2 "2021-01-21T17:28:21Z")

</div>

(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.
