Documentation ¶
Overview ¶
Package alert implements basic alerts.
alert.Alert("Title", "Message") // Has an OK button by default. alert.Alert("Title", "Message", &Button{ Title:"Cancel", OnPress: func() { // Do something } })
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Button ¶
type Button struct { Title string Style ButtonStyle OnPress func() }
Button represents an alert button.
type ButtonStyle ¶
type ButtonStyle int
Alert button styles.
const ( ButtonStyleDefault ButtonStyle = iota ButtonStyleCancel ButtonStyleDestructive )
Click to show internal directories.
Click to hide internal directories.