# \[FEATURE\] Perspective - Add Dock open and close event handlers

**URL:** <https://forum.inductiveautomation.com/t/feature-perspective-add-dock-open-and-close-event-handlers/48190>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [June 25, 2021, 3:07am UTC](https://forum.inductiveautomation.com/t/feature-perspective-add-dock-open-and-close-event-handlers/48190 "2021-06-25T03:07:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 25, 2021, 3:07am UTC](https://forum.inductiveautomation.com/t/feature-perspective-add-dock-open-and-close-event-handlers/48190/1 "2021-06-25T03:07:35Z")

</div>

Please add event handlers for when a dock is “opened” (shown) and “closed” (hidden).

I’m trying to open a different header dock based on the size of the screen as I want the smaller screen dock to have a shorter height, but I can’t do this without the dock actually known if it’s open or closed. I’ve tried with manual flags, but some page changes automatically close onDemand docks which I have no control over like the menu component.

---

<div class="post-metadata">

**Author:** ![mcarritt1](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mcarritt1/32/4262_2.png) [@mcarritt1](https://forum.inductiveautomation.com/u/mcarritt1)\
**Post date:** [October 24, 2022, 9:40am UTC](https://forum.inductiveautomation.com/t/feature-perspective-add-dock-open-and-close-event-handlers/48190/2 "2022-10-24T09:40:51Z")

</div>

+1

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [October 24, 2022, 9:47am UTC](https://forum.inductiveautomation.com/t/feature-perspective-add-dock-open-and-close-event-handlers/48190/3 "2022-10-24T09:47:44Z")

</div>

> **[dockIsOpen function | Voters | Inductive Automation](https://inductiveautomation.canny.io/ignition-features-and-ideas/p/dockisopen-function)**
