SpinnerMacro

Version 1.1 von Burkard Hagspiel am 2025-04-26
Warnung
Aus Sicherheitsgründen wird das Dokument in einem eingeschränkten Modus angezeigt, da es sich nicht um die aktuelle Version handelt. Dadurch kann es zu Abweichungen und Fehlern kommen.

Todos

Add message for screen readers when loaded ok.


The spinner macro displays a spinner within its container when this container uses attribute aria-busy to reflect its content loading state. The spinner is displayed/hidden automatically when the attribute aria-busy of its container is set to true / respectively to false. See also the documentation of the aria-busy and aria-live attributes.

Example

spinner.loading

(% aria-busy="true" %)(((
  {{spinner color="@brand-primary"
    thickness="3px" size="30px" top="10px"/}}
)))

Macro Parameters

Das Makro [velocity] konnte nicht ausgeführt werden. Grund: [The execution of the [velocity] script macro is not allowed in [xwiki:XWiki.Spinner.SpinnerMacro]. Check the rights of its last author or the parameters if it's rendered from another script.]. Klicke auf diese Nachricht, um Details zu erfahren.

Limitations

At the moment, having several spinners on the same page with different styles is not supported. The styling needs to be set manually in this case, until it becomes possible in XWiki to include several times the same SSX page with different query parameters.