From wiki.ginstr.com
Jump to: navigation, search

gn:act_showYesNoDialog

Description
Action used to display Yes/No dialog with custom title, message and buttons text.
Action returns
void
Callback events
gn:event_afterYesNoDialogYes - bound widget event; it will be fired after the confirm button is pressed.
gn:event_afterYesNoDialogNo - bound widget event; it will be fired after the cancel button is pressed.

Action signatures

Show yes/no dialog

[gn:act_showYesNoDialog]|[title,message,confirmButton,cancelButton]
Parameter Description
title source from where the dialog title text will be used
message source from where the dialog message text will be used
confirmButton source from where the dialog confirm button text will be used
cancelButton source from where the dialog cancel button text will be used

Example

@string/$leaveScreenDialogTitle - title
@string/$leaveScreenDialogMessage - message
@string/$leaveScreenDialogConfirm - confirm button
@string/$leaveScreenDialogCancel - cancel button
[gn:act_showYesNoDialog]|[@string/$leaveScreenDialogTitle, @string/$leaveScreenDialogMessage, @string/$leaveScreenDialogConfirm, @string/$leaveScreenDialogCancel]