Documentation
¶
Overview ¶
Package uinotification contains the uiNotification dashboard widget: a toast on the dashboard page driven by the incoming message (text/level). Level defaults to "info"; an explicit ui.level or a payload map's "level" key wins.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UINotificationNode ¶
type UINotificationNode struct {
*nodebase.UIWidgetNode
}
UINotificationNode pushes {"text": ..., "level": ...} to the dashboard sink. The client toasts only on live updates — manifest replay does not re-fire stale notifications.
func NewUINotificationNode ¶
func NewUINotificationNode(node nodestore.NodeInterface, host nodebase.NodeHost) *UINotificationNode
NewUINotificationNode creates a new uiNotification widget node.
func (*UINotificationNode) Execute ¶
func (n *UINotificationNode) Execute(ctx context.Context, in nodestore.MessageInterface) (nodestore.MessageInterface, error)
Execute pushes {"text": ..., "level": ...} to the hub.