Skip to content
Patrick Garske edited this page Jan 28, 2019 · 2 revisions

spinner(args)


Creates a spinner element

Array args - Used to pass arguments to the spinner generator

Key Description
"type" [String] Required - Defines the spinner type. Valid options are border and growing
"style" [String] Required - Defines the color of the spinner
"alt" [String] Optional - 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

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

Example

View Working Example

echo spinner(array("type"=>"border", "style"=>"primary", "alt"=>"Loading..."));
echo spinner(array("type"=>"growing", "style"=>"dark"));
echo custom_link(array("element"=>"button","style"=>"primary", "links_to"=>"#"),span_spinner("border")." Loading...");
Clone this wiki locally