AlertDialog Event.COMPLETE: Difference between revisions
From GiderosMobile
added category |
removed category reference |
||
| Line 1: | Line 1: | ||
[[Category: AlertDialog]] | <!--[[Category: AlertDialog]]--> | ||
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. | ||
Revision as of 23:25, 8 December 2019
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