Loading Spinner
Show request progress for common FactFinder actions.
Documentation
Loading Spinner
ff-loading-spinner is a lightweight visual indicator for pending actions. It responds to common events fired by FactFinder Web Components.
The spinner uses inexpensive CSS animations. It does not trigger layout or paint operations in Blink and Gecko browsers.
By default, it activates for these events:
searchfilterclearFiltersortadvisor
It deactivates automatically when the action completes.
For example, a search through ff-searchbox activates the spinner. It deactivates when FactFinder returns the response.
Usage
Default mode
After integrating ff-communication and ff-searchbox, add the spinner to the page:
<ff-loading-spinner></ff-loading-spinner>The spinner appears when FactFinder receives a search request. It hides again when the response arrives.
Manual mode
Manual mode prevents the spinner from subscribing to events. Enable it with the manual attribute.
Adding manual unsubscribes the element from all events. Removing it subscribes the element again.
You can also set the manual property to true or false. Control visibility with is-active, show(), or hide().
Manual mode is not required when using the visibility API. Use it when default subscriptions could interrupt custom animation timing.
Use manual mode with custom event handlers:
Changing color
Set stroke-color to any CSS color value.
Demo
Try the Loading Spinner demo.
API code
Properties
Methods
Last updated
Was this helpful?