Documentation ¶
Rendered for js/wasm
Index ¶
- Variables
- func ToPX(px int) string
- func ToPercent(percent int) string
- func ToRem(rem int) string
- func ToVW(vw int) string
- type Message
- type Messages
- func (m *Messages) Delete(msg *Message)
- func (m *Messages) New(t string, c string, expireMS int, widthPX int) *Message
- func (m *Messages) NewError(c string, expire int, widthPX int) *Message
- func (m *Messages) NewInfo(c string, expire int, widthPX int) *Message
- func (m *Messages) NewSuccess(c string, expire int, widthPX int) *Message
- func (m *Messages) NewWarning(c string, expire int, widthPX int) *Message
- func (m *Messages) Stop()
Constants ¶
This section is empty.
Variables ¶
View Source
var ActiveMessages = NewMessages()
Functions ¶
Types ¶
type Message ¶
type Messages ¶
type Messages struct { Active []*Message StopMessageLoop chan struct{} }
func NewMessages ¶
func NewMessages() *Messages
func RunNewMessages ¶
func RunNewMessages() *Messages
func (*Messages) NewSuccess ¶ added in v1.9.2
func (*Messages) NewWarning ¶ added in v1.9.2
Click to show internal directories.
Click to hide internal directories.