Dialog preloader + button

Hi, so im working in an App that has a a button to search a match (of 2 players).

While match isnt full we call dialog.preloader() method. When its full we just close it and navigate.

The thing is i want to add a button(cancel) so user can cancel the search.

Is any way to add a button to the preloader method or i have to create a new dialog var?

You need to create a custom dialog for this purpose using app.dialog.create() http://framework7.io/docs/dialog.html#dialog-methods-properties

1 Like

Done !

I got a new issue. When i close the dialog and stay in the same view, defined functions stoped working.

I tried router.refreshPage() and worked