Page 1 of 1

How to call a function after the tableWindow closing is triggered

Posted: 24 August 2022, 23:33
by Tabaskov
Hello,
I am looking for a way to intercept the closing of the score window (tableWindow) on the JS side. Do I have to handle the click event on the bottom button and the cross in the upper right corner? Or is there a trick that detects the closing (onClose doesn't exist...)?
Thanks ;)

Re: How to call a function after the tableWindow closing is triggered

Posted: 25 August 2022, 23:20
by Victoria_La
If you pass 'closing" as parameter it will actiate close button
When notification is send - you can override function that listen on this notification and add click listener on the button

Code: Select all

     //@Override
        ntf_tableWindow: function( notif )     {
        this.inherited(arguments);
	dojo.connect( $('close_btn'), 'onclick', this,  (e)=>console.log('closing'));
       },
but it won't catch when it closed by other means

Re: How to call a function after the tableWindow closing is triggered

Posted: 26 August 2022, 11:27
by Tabaskov
Yes, thanks a lot,
I finally used this method, and also added the popin_tableWindow_close for the click listener. It works very well :)

Re: How to call a function after the tableWindow closing is triggered

Posted: 28 August 2022, 07:59
by Matthias X
Had the exact same problem. Thanks for posting the question and the answer :-)