-
Notifications
You must be signed in to change notification settings - Fork 6
[0.1.0] Spinner
Patrick Garske edited this page Jan 28, 2019
·
2 revisions
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 |
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
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...");