🍉 Meet Flexmonster Pivot Table & Charts 2.9.Check out all the hot features!
Get Free Trial

Is any event available or any method to detect if any pop-up is open on flexmonster report?

Jyoti asked on January 10, 2020

Hi Support Team,
Is there any event or method available to detect if any type of pop-up is open on flexmonster report? Can you please give the details if any such event or method?
Thanks & Regards

3 answers

Mykhailo Halaida Mykhailo Halaida Flexmonster January 13, 2020

Hi Jyoti,
Thank you for posting your question.
As of right now, there is no universal built-in method or event that would detect any pop-up windows directly.
However, since Flexmonster is a web component, it is always possible to look for specific elements directly in the HTML document of the page. We would suggest using the querySelector() method of the Document interface to check if elements with certain IDs are present on the page.
This will let you detect any possible pop-ups, as well as other windows in the UI.
We were also wondering if you could tell us a little bit more about your use case and what you are trying to achieve here. Understanding this would greatly help us provide you with the most relevant information in the future.
Thank you in advance and looking forward to hearing from you.
Best regards,

Jyoti January 15, 2020

We want to prevent other area on page being clickable when any of the popup in flexmonster tool is open. Hence we need to know if any such event is available.

Illia Yatsyshyn Illia Yatsyshyn Flexmonster January 15, 2020

Thank you for providing more details.
Our team would like to kindly suggest using the following approach:
Track if the elements with specified ID exist in the Flexmonster’s container and trigger the desired function. It is possible using the MutationObserver object that provides a possibility to observe a DOM element and fires a callback in case of changes.
Please check out an example we prepared for you, demonstrating the implementation of such an approach.
We hope it works for your case.
Best regards,

Please login or Register to Submit Answer