Next: (hygguile sxml), Previous: (hygguile hygguile), Up: API
Generate a client-side script block that handles rendering notifications from URL parameters.
This macro sets up a DOM listener evaluating parameters matching
notify-title and notify-body from the window URL
properties. When populated, it puts a notification-card into the
layout tray wrapper designated by the element identifier
notification-tray, fills its title and body with
textContent, and clears the tray again after the notification’s
duration.
A space-separated string containing CSS layout configuration targeting the card header text elements.
The client-side callback script evaluated whenever a dismiss interaction triggers.
A space-separated string containing structural component icon identifiers and layout options.
A space-separated string containing CSS layout parameters handling the alignment properties of the text boundaries.
Extra classes for the notification’s frosted card, appended to the panel’s own.
(show-notifications-from-url-js #:header-classes "text-lg font-bold")
Generate a JavaScript IIFE string that pushes notification parameters into the URL query string and reloads the window.
The fallback string title of the notification.
The core informational content string of the notification.
The visibility timeline limit in milliseconds before the notification is cleared.
The fallback typography class string applied to the notification’s description field.
(trigger-notification-function-js #:title "Alert" #:body "System update complete.")
Next: (hygguile sxml), Previous: (hygguile hygguile), Up: API