Skip to main content
15-Moonstone
March 6, 2020
Solved

Close popup

  • March 6, 2020
  • 3 replies
  • 3410 views

I am able close a popped up mashup on click of a button which is inside the popped up but I Couldn't close the pop up upon clicking a button which is not in popup mashup.

Best answer by Constantine

None of that allows to do what @krishnakomal123 asked originally:

 

upon clicking a button which is not in popup mashup.

 

This is currently not possible with ThingWorx, you can't close one mashup from another one.

 

/ Constantine

3 replies

5-Regular Member
March 6, 2020

There's a checkbox in Navigation widget that's ClickOutsideToClose, thus you don't even need a Button outside the Popup, just click anywhere but inside.

18-Opal
March 6, 2020

That's right, you can't.

4-Participant
March 6, 2020

Hi KrishnaKomal123,

There are many ways to close the pop up. One is on click of a button you call the CloseIfPopUp. The other is to click on "CloseButton" option which gives you a X mark on the top right corner of the screen.

In your case you need to enable the "ClickOutsideToClose" checkbox. Even on any event of a service or function we can close the popup screens.

 

Hope this helps.

18-Opal
March 6, 2020

None of that allows to do what @krishnakomal123 asked originally:

 

upon clicking a button which is not in popup mashup.

 

This is currently not possible with ThingWorx, you can't close one mashup from another one.

 

/ Constantine