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
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
echo spinner("border", "primary", "Loading..."); echo spinner("growing", "dark", "Loading..."); echo custom_link("button", "#", span_spinner("growing") . " Loading...", "primary", no_arg());