Excerpt |
---|
The reference shows the full usage of the custom dashboard loaders for Squirro dashboards. |
...
Code Block | ||||
---|---|---|---|---|
| ||||
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)
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.