2023-05-19 21:45:39 +00:00
|
|
|
package overlay
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/vugu/vugu"
|
|
|
|
)
|
|
|
|
|
|
|
|
type ToastSimple struct {
|
|
|
|
OverlayContainerRef
|
|
|
|
|
2023-05-25 13:59:13 +00:00
|
|
|
IconSlot vugu.Builder `vugu:"data"` // Slot for the symbol.
|
2023-05-19 21:45:39 +00:00
|
|
|
|
|
|
|
Message string `vugu:"data"`
|
|
|
|
|
|
|
|
SignalColor string // A d3c CSS class for the color scheme of the small bar.
|
|
|
|
}
|
|
|
|
|
|
|
|
func (c *ToastSimple) OverlayClasses() (signalClasses, containerClasses string) {
|
|
|
|
return c.SignalColor, ""
|
|
|
|
}
|