Versions Compared

Key

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

...

This example extends from theĀ Loaders.Base base class. At the moment it is the only loader class available.

API

The JavaScript API, including all properties and methods to be overwritten, is documented in theĀ Custom Widgets API.main entry point to a loader is the customLoad() method. This method should be implemented in a custom loader and is executed before any dashboard content is loaded.

Loading custom CSS

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