Confirmation Dialog
Last updated
Show a native alert and branch based on which button the user pressed.
NativeUIShowAlert
pressedButtonIndex (Int)
pressedButtonLabel (String)
State: ShowConfirmation
Action: NativeUIShowAlert
Example inputs:
title: "Delete Item?"
message: "This action cannot be undone."
buttonLabels: ["Delete"]
cancelButtonLabel: "Cancel"
Events:
buttonClickedEvent → Confirmed
cancelClickedEvent → Cancelled
State: Confirmed
Perform the action.
State: Cancelled
Do nothing / go back.
buttonClickedEvent is sent for any non-cancel button. Use pressedButtonIndex / pressedButtonLabel if you have multiple buttons.
Last updated