Versions Compared

Key

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


Excerpt

The reference shows the full usage of the custom dashboard loaders for Squirro dashboards.

...

Code Block
languagejs
titleloader.js
return Loaders.Base.extend({
    customLoad: function () {
        this.customResources['loader.css']();
    },
});

Limiting CSS confusion

It's not mandatory but we recommended developers give custom CSS class names to widgets that are being changed by dashboard loaders, this allows other developers to better understand what is being changed later on and gives you some additional specificity when changing css. See the image below available on all widgets. (Custom CSS Class Name)

Image Added

Selecting a Dashboard Loader

To apply your loader to a dashboard you need to select it in the dashboard config. You can apply different loaders to different dashboards.

Image Added