Alert
Something went wrong
Phone number was reformatted
Successfully saved the model
Example
A simple primary alert.
A simple primary alert.
A simple primary alert.
A simple primary alert.
Go
Application bar alert
The application bar alert automatically gets all alerts and clear on rendering. The lower bar color has always the color of the highest alert.
import "fsgWidget"
func handler(c *gin.Context) {
fsgWidget.AddAlert(c, fsgWidget.AlertError, "Something happened")
var alerts fsgWidget.AlertSlice = fsgWidget.GetAlerts(c)
fsgWidget.ClearAlerts(c)
}
Inline alert
{{ .alert.Render }}