# InDesign plugin Close event

**URL:** <https://forums.creativeclouddeveloper.com/t/indesign-plugin-close-event/6716>\
**Category:** InDesign\
**Tags:** react, javascript\
**Created:** [August 21, 2023, 5:43am UTC](https://forums.creativeclouddeveloper.com/t/indesign-plugin-close-event/6716 "2023-08-21T05:43:28Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![vinayKumarG](https://sea1.discourse-cdn.com/flex015/user_avatar/forums.creativeclouddeveloper.com/vinaykumarg/32/3225_2.png) [@vinayKumarG](https://forums.creativeclouddeveloper.com/u/vinayKumarG)\
**Post date:** [August 21, 2023, 7:53am UTC](https://forums.creativeclouddeveloper.com/t/indesign-plugin-close-event/6716/2 "2023-08-21T07:53:43Z")

</div>

@team_creativebuffer I believe by Plugin close, you mean close of the panel(window created for plugin),  
before jumping into more details, this is provided on UXP which also requires some implementation from the Indesign, which is not done yet, you can expect this to work in the later releases

Coming into more detail, Developers often confuse the terms plugin and panel in UXP,  
What you are referring to above is a Panel and not Plugin,

Plugin creation and destruction are managed by the application i.e. Indesign in this case.  
Invoking and closing of the entrypoints like Panel/Commands are based on the user actions

Plugin is created during the App launch and destroyed during the App Quit. UXP does have lifecycle events for these which can be referred [here](https://developer.adobe.com/indesign/uxp/reference/uxp-api/reference-js/Modules/uxp/Entry%20Points/EntryPoints/#:~:text=entrypoints.plugin.create,entrypoints.plugin.destroy)

Panel opening/invocation & closing/destroy are based on the User interaction like opening the panel from the Plugins Panel. Opening/Invocation of Panel entrypoint would result in Panel lifecycle events Create and Show more details refer [here](https://developer.adobe.com/indesign/uxp/reference/uxp-api/reference-js/Modules/uxp/Entry%20Points/EntryPoints/#:~:text=entrypoints.panels.create,entrypoints.panels.show)

Similarly, Panel closing would result in Hide/Destroy events.

Plugin Events(Create/Destroy) should be working as there is no implementation required from the host, but as mentioned these would come during the launch/Quit of the App respectively.

Panel events would be more on the Panel, like open and close, etc, but these need some work on Indesign and which is not done yet, so these wouldn’t work yet.

---

_[View the full topic](https://forums.creativeclouddeveloper.com/t/indesign-plugin-close-event/6716)._
