Doo Dad
Posts: 0
Joined: Sun May 11, 2014 8:04 pm

How can I intercept a dialog close event

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

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How can I intercept a dialog close event

Hello,

Please look here Closing dialogs: http://demos.jquerymobile.com/1.4.2/p...

Doo Dad
Posts: 0
Joined: Sun May 11, 2014 8:04 pm

How can I intercept a dialog close event

I am using appery not JQuery mobile .....

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How can I intercept a dialog close event

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...

Doo Dad
Posts: 0
Joined: Sun May 11, 2014 8:04 pm

How can I intercept a dialog close event

There is no section called

Adding_properties_to_components

in the link you gave me ....

Doo Dad
Posts: 0
Joined: Sun May 11, 2014 8:04 pm

How can I intercept a dialog close event

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"
Image

Evgene Karachevtsev
Posts: 12
Joined: Mon Apr 28, 2014 1:12 pm

How can I intercept a dialog close event

Doo Dad,

Thank you for your update!

Return to “Issues”