Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Messenger ¶
type Messenger interface { // Display an error message Error(duration time.Duration, args ...any) // Display a warning message Warning(duration time.Duration, args ...any) // Display an info message Info(duration time.Duration, args ...any) // Display a success message Success(duration time.Duration, args ...any) }
A messenger which will display messages to the user
type OnClickFunc ¶
type OnClickFunc func()
func (OnClickFunc) OnClick ¶
func (f OnClickFunc) OnClick()
type SimpleMessenger ¶
type SimpleMessenger struct { // The element which will be used to display messages Element js.Value `jsc:"element"` // Foreground and background colors for the message Colors Styling `jsc:"contrast"` }
func (*SimpleMessenger) Error ¶
func (m *SimpleMessenger) Error(duration time.Duration, args ...any)
Display an error message
func (*SimpleMessenger) Info ¶
func (m *SimpleMessenger) Info(duration time.Duration, args ...any)
Display an info message
Click to show internal directories.
Click to hide internal directories.