Select to view content in your preferred language

How to prevent widget to be destroyed when popup closed

390
2
06-28-2019 10:49 AM
MaximeDemers
Regular Contributor

I have a widget that is using the jimu/dijit/Popup class. I have noticed that when the popup is closed with the X button or with the close() method, the widget is automatically destroyed and cannot be accessed from the WidgetManager anymore.

Is there a way to prevent the widget to be destroyed when the popup is closed?

Tags (1)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Emeritus

Maxime,

   Not that I know of. Opening a widget inside a jimu popup is very unconventional. The popup will always destroy on close.

0 Kudos
MaximeDemers
Regular Contributor

Ok thank you for your answer. Then, I'll use hide() instead for the X button

0 Kudos