Menu

Spinner

Patrick Garske

spinner(type, style, alt)


Creates a spinner element

type - Defines the spinner type. Valid options are border and growing

style - Defines the color of the spinner

alt - Text displayed in case Spinner doesn't load

span_spinner(type)


Creates a monotone spinner element to be used in buttons and other smaller elements

type - Defines the spinner type. Valid options are border and growing

Example

View Working Example

echo spinner("border", "primary", "Loading...");
echo spinner("growing", "dark", "Loading...");
echo custom_link("button", "#", span_spinner("growing") . " Loading...", "primary", no_arg());

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.