Reference for show_alert
Show a message in a dialog box to the user. This is part of the reference section.
Arc
Buffer
Data
Dialog
show_alert
Ellipse
Geo Utils
Image
Joystick (future)
Keyboard
Line
Mouse / Touchscreen
Pixel
Rectangle
Renderers
Shape
Sound (future)
Style
System
Text
Transform
Purpose
Show a message in a dialog box to the user without any controls except to dismiss.
Snippet
Say hello in a dialog box.
sketch.get_dialog_layer().show_alert('Hello!')
Parameters
- message: The message to display in the box. May be interpreted as HTML on some platforms.
Examples
Availability
Available for Sketch2DWeb and Sketch2DApp. For app, will try to interpret as HTML.