For the complete documentation index, see llms.txt. This page is also available as Markdown.

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:

  • search

  • filter

  • clearFilter

  • sort

  • advisor

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

API code

Properties

Properties
Name
Description

is-active (Boolean, default: false)

Shows and animates the element when set.

stroke-color (String, default: "#4285F4")

CSS color applied to the spinning stroke.

manual (Boolean, default: false)

Disables default event subscriptions. Control visibility manually.

Methods

Methods
Name
Description

show()

Shows the spinner. Equivalent to setting is-active.

hide()

Hides the spinner. Equivalent to removing is-active.

Last updated

Was this helpful?