Page 1 of 1
How can I intercept a dialog close event
Posted: Thu Aug 21, 2014 6:07 pm
by Doo Dad
Hi
I have created a dialog using Appery.io which is displayed from within a page on a button click event. The dialog opens when the button is clicked .
I want to know how I can get the event when the user clicks on the 'X' close icon on the top right of the dialog. Is it possible to hide the 'X' ?
Thanks
DDD
How can I intercept a dialog close event
Posted: Thu Aug 21, 2014 6:40 pm
by Evgene Karachevtsev
Hello,
Please look here Closing dialogs: http://demos.jquerymobile.com/1.4.2/p...
How can I intercept a dialog close event
Posted: Thu Aug 21, 2014 7:13 pm
by Doo Dad
I am using appery not JQuery mobile .....
How can I intercept a dialog close event
Posted: Thu Aug 21, 2014 7:30 pm
by Evgene Karachevtsev
Doo Dad,
Yes, but Appery.io uses JQM, according to the doc you need to use the property data-close-btn="none" to hide the close of the dialog button. You can add a property this way:
http://devcenter.appery.io/documentat...
How can I intercept a dialog close event
Posted: Thu Aug 21, 2014 7:36 pm
by Doo Dad
There is no section called
Adding_properties_to_components
in the link you gave me ....
How can I intercept a dialog close event
Posted: Thu Aug 21, 2014 7:41 pm
by Evgene Karachevtsev
Doo Dad,
How can I intercept a dialog close event
Posted: Thu Aug 21, 2014 8:17 pm
by Doo Dad
To all those who wonder how to remove the "X" from a dialog here is the solution.
1 Open the dialog page in the deisgner
2 Select the top most componet on the dialog (the dialog component itself)
3 Press the "More properties" button on the "Properties Screen" usually at the far right of the deisgner.
4 Add the property "data-close-btn" with value "none"
5 make sure you press "Save Op00tions"
How can I intercept a dialog close event
Posted: Thu Aug 21, 2014 8:19 pm
by Evgene Karachevtsev
Doo Dad,
Thank you for your update!