Like what you see? Have a play with our trial version.

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Anchor
top
top
Table of Contents
maxLevel4
classcontents

LoaderEvents Overview

In Yellowfin 9.4 we enabled the option to add customized loaders to the Javascript API through the “loaderEvents” API.

These loaders are also available in code mode and when using custom headers via the window object.

This allows a developer to listen for instances where an element within a Yellowfin element has a loader added to it or removed from it and then reacts to that event.

...

For example, a business using a white-label version of Yellowfin software might prefer to use  their own loader icon to match their brand rather than the default blue circle that ships with Yellowfin.

Note: due to the nature of the LoaderEvents API, it has no properties nor events associated specifically with it.

...

After the Yellowfin API init() call has completed, the yellowfin.loaderEvents function will become available. This provides two basic functions — listen and stopListening — which allow you to set  up and remove loader events as you require.  It also provides two functions that simplify replacing many child loaders at once — interceptChildLoadersForElement and stopListeningToElementIntercept.

Note: to use this function in code mode or with custom headers, switch out "yellowfin.loaderEvents" for "window.loaderEvents"

listen(listenObject)

This creates a loader event listener with the passed listenObject object.

...