Difference between revisions of "AlertDialog Event.COMPLETE"

From GiderosMobile
(Created page with "This event is dispatched when user presses any button on AlertDialog or the dialog is dismissed by any other reason. Event.COMPLETE = "complete" === Event properties: === ''...")
 
Line 1: Line 1:
 
This event is dispatched when user presses any button on AlertDialog or the dialog is dismissed by any other reason.
 
This event is dispatched when user presses any button on AlertDialog or the dialog is dismissed by any other reason.
  
 +
<syntaxhighlight>
 
Event.COMPLETE = "complete"
 
Event.COMPLETE = "complete"
 +
</syntaxhighlight>
  
 
=== Event properties: ===
 
=== Event properties: ===
 
'''buttonIndex:''' (number) the index of the button pressed. It is nil when cancel button is pressed, 1 when 1st button is pressed and 2 when 2nd button is pressed.
 
'''buttonIndex:''' (number) the index of the button pressed. It is nil when cancel button is pressed, 1 when 1st button is pressed and 2 when 2nd button is pressed.
 
'''buttonText:''' (string) the text of the button pressed
 
'''buttonText:''' (string) the text of the button pressed

Revision as of 00:13, 22 August 2018

This event is dispatched when user presses any button on AlertDialog or the dialog is dismissed by any other reason.

Event.COMPLETE = "complete"

Event properties:

buttonIndex: (number) the index of the button pressed. It is nil when cancel button is pressed, 1 when 1st button is pressed and 2 when 2nd button is pressed. buttonText: (string) the text of the button pressed