Make DialogBox wait for user action and return a boolean value in GWT

How can I make DialogBox (confirmation message and the OK and Cancel buttons) wait for user action and return a logical result (true clicked OK, false otherwise)?

Thanks in advance.

+3
source share
2 answers

Another way would be to split your code and put everything that should be done after confirming / canceling a click in the callback. Call back in the ok / cancel handlers of the dialog box.

+4
source

- Window.confirm, " , " "" ".

+3

Source: https://habr.com/ru/post/1749976/


All Articles