Menu

Dialogs

UI (5) dialog (2)
miller9904
Attachments
default dialog.png (13700 bytes)

Dialogs

To open a dialog, use App.openDialog():

App.openDialog('This is the Dialog Text.');

This is what the default Dialog looks like:

Default Dialog

The default button also has the pulse class added to it.

If you want to change the text inside the buttons, then use this:

App.openDialog('This is the Dialog Text.', 'ok=Yes&cancel=No');

Dialog with Button Text Changed

You can also execute a script when the default button is pushed:

App.openDialog('This is the Dialog Text.', '', 'alert("you clicked OK");');

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.