User Tools

Site Tools


built_in:yesnodialog

Differences

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

Link to this comparison view

built_in:yesnodialog [2015/10/13 13:14]
118.148.217.11 [Methods]
built_in:yesnodialog [2018/05/28 00:23]
Line 1: Line 1:
-====== YesNoDialog ====== 
  
-===== Methods ===== 
-^Method ^Description ^ 
-|YesNoDialog.GetType() | | 
-|YesNoDialog.SetOnTouch( callback ) | | 
- 
-<file javascript yesNoDialog.js> 
- 
-//Called when application is started. 
-function OnStart() 
-{ 
-   trial = app.CreateYesNoDialog( "Trial Y/N" ); 
-   trial.SetOnTouch( tapped ); 
- 
-} 
- 
-function tapped(button){ 
- 
-switch (button) 
-{ 
-case "Yes": 
-alert("\"Yes\" was chosen"); 
-break; 
- 
-case "No": 
-alert("\"No\" was chosen"); 
-break; 
- 
-} 
- 
-alert("Control Type: "  
-  + trial.GetType()); 
- 
-app.Exit(); 
-} 
- 
-</file> 
built_in/yesnodialog.txt · Last modified: 2018/05/28 00:23 (external edit)