Next: , Previous: , Up: API  


1.31 (hygguile js)

1.31.1 Procedures

Procedure: show-notifications-from-url-js KEY: #:header-classes #:close-icon-on-click #:close-icon-classes #:title-container-classes #:card-classes

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.

header-classes

A space-separated string containing CSS layout configuration targeting the card header text elements.

close-icon-on-click

The client-side callback script evaluated whenever a dismiss interaction triggers.

close-icon-classes

A space-separated string containing structural component icon identifiers and layout options.

title-container-classes

A space-separated string containing CSS layout parameters handling the alignment properties of the text boundaries.

card-classes

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")
Procedure: trigger-notification-function-js KEY: #:title #:body #:duration #:body-font-family

Generate a JavaScript IIFE string that pushes notification parameters into the URL query string and reloads the window.

title

The fallback string title of the notification.

body

The core informational content string of the notification.

duration

The visibility timeline limit in milliseconds before the notification is cleared.

body-font-family

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