test - kuyseng/mytickettee GitHub Wiki

foo

  • index is the 0 based index value of the button pressed

  • label is the text label of the button pressed

          function showConfirm() {
              var confirmDelegate = navigator.notification.confirm(
                  'You are the winner!',  // message
                  'Game Over',            // title
              'Restart,Exit'          // buttonLabels
              );
              confirmDelegate.onAlertDismissed = function(index,label) {
                  // confirm dismissed, take appropriate action
                  console.log('You selected button ' + index + ' with label ' + label);
              }
          };
    
  • index is the 0 based index value of the button pressed

  • label is the text label of the button pressed

          function showConfirm() {
              var confirmDelegate = navigator.notification.confirm(
                  'You are the winner!',  // message
                  'Game Over',            // title
              'Restart,Exit'          // buttonLabels
              );
              confirmDelegate.onAlertDismissed = function(index,label) {
                  // confirm dismissed, take appropriate action
                  console.log('You selected button ' + index + ' with label ' + label);
              }
          };