Set custom button labels
Array of button labels (default: ["OK"])
Self for chaining
Close the dialog programmatically
Set additional informative text below the main message
The informative text
Self for chaining
Set the callback for button presses
Function receiving the 0-based index of the button the user pressed
Self for chaining
Set the dialog style
Style name (e.g., "informational", "warning", "critical")
Self for chaining
HSUIDialog
A modal dialog with customizable buttons* Shows a blocking dialog with a message, optional informative text, and custom buttons. Use the callback to respond to button presses.
Example