This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
built_in:yesnodialog [2015/03/22 08:31] octazid [Methods] delete not used methods |
built_in:yesnodialog [2018/05/28 00:23] (current) |
||
---|---|---|---|
Line 2: | Line 2: | ||
===== Methods ===== | ===== Methods ===== | ||
- | ^Method ^Description ^ | + | ^ Method |
- | |YesNoDialog.GetType() | | | + | | .GetType( ) | |
- | |YesNoDialog.SetOnTouch( callback ) | | | + | | .Show( ) | Show YesNoDialog |
+ | | .SetButtonText ( str1, str2 ) | Customize button text | | ||
+ | | .SetOnTouch( callback ) | Calls callback after hitting " | ||
+ | | | | | ||
+ | |||
+ | <file javascript yesNoDialog.js> | ||
+ | |||
+ | // | ||
+ | function OnStart() | ||
+ | { | ||
+ | trial = app.CreateYesNoDialog( " | ||
+ | trial.SetOnTouch( tapped ); | ||
+ | trial.Show(); | ||
+ | |||
+ | } | ||
+ | |||
+ | function tapped(button){ | ||
+ | |||
+ | alert(" | ||
+ | |||
+ | switch (button) | ||
+ | { | ||
+ | case " | ||
+ | alert(" | ||
+ | break; | ||
+ | |||
+ | case " | ||
+ | alert(" | ||
+ | break; | ||
+ | |||
+ | } | ||
+ | |||
+ | alert(" | ||
+ | + trial.GetType()); | ||
+ | |||
+ | app.Exit(); | ||
+ | } | ||
+ | |||
+ | </ | ||
+ | |||
+ | ===== Options ===== | ||
+ | |||
+ | ^ Option | ||
+ | | ShowNow | ||