Next: , Previous: , Up: API  


1.15 (hygguile js)

1.15.1 Procedures

Procedure: show-notifications-from-url-js KEY: #:header-classes #:close-icon-on-click #:close-icon-classes #:title-container-classes #:notification-tray-container-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 generates the corresponding component subtree inside the layout tray wrapper designated by the element identifier notification-tray.

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.

notification-tray-container-classes

A space-separated string containing global structural box presentation layouts applied directly onto the notification layout wrapper block.

(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