User Tools

Site Tools


built_in:yesnodialog

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
built_in:yesnodialog [2015/10/13 13:14]
118.148.217.11 [Methods]
built_in:yesnodialog [2018/05/28 00:23] (current)
Line 2: Line 2:
  
 ===== Methods ===== ===== Methods =====
-^Method ^Description ^ +^ Method                         ^ Description                                 
-|YesNoDialog.GetType() | | +| .GetType( )                                                                
-|YesNoDialog.SetOnTouch( callback ) | |+.Show( )                       | Show YesNoDialog                            | 
 +| .SetButtonText ( str1, str2 )  | Customize button text                       | 
 +.SetOnTouch( callback )        | Calls callback after hitting "Yes" or "No" 
 +|                                                                            |
  
 <file javascript yesNoDialog.js> <file javascript yesNoDialog.js>
Line 13: Line 16:
    trial = app.CreateYesNoDialog( "Trial Y/N" );    trial = app.CreateYesNoDialog( "Trial Y/N" );
    trial.SetOnTouch( tapped );    trial.SetOnTouch( tapped );
 +   trial.Show();
  
 } }
  
 function tapped(button){ function tapped(button){
 +
 +alert("Only " + arguments.length + " Argument(s) Available.");
  
 switch (button) switch (button)
Line 37: Line 43:
  
 </file> </file>
 +
 +===== Options =====
 +
 +^ Option       ^ Description                                          ^
 +| ShowNow      | Shows the dialog directly (whithout calling Show())  |
 +
built_in/yesnodialog.1444742067.txt.gz · Last modified: 2015/10/13 21:14 (external edit)