umbLoadIndicator
Many web sites and web applications use a form of load indicator to indicate a busy state to the user. Throughout the backoffice, Umbraco uses three animated circles as a load indicator - eg. as shown below:
![](https://docs.umbraco.com/~gitbook/image?url=https%3A%2F%2F2945122355-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FmmtM2UdX1OOMSi0CksPv%252Fuploads%252Fgit-blob-66e74e371e62fff9612771abb4e18eb1c181c561%252FumbLoadIndicator.gif%3Falt%3Dmedia&width=768&dpr=4&quality=100&sign=c5df9962&sv=1)
Umbraco internally does this via the <umb-load-indicator />
directive, which you can also use in your own views for the backoffice.
The directive doesn't have any parameters on it's own. Since you most likely only wish to show the load indicator during certain states of your code, you can control this either through ng-if
or ng-show
.
For instance if your controller sets the loading
variable to true
during busy states:
The directive uses CSS and absolute position to center it self in. For instance, if you're also using the <umb-box-content />
directive, you can set it's position to relative
:
As seen on the animation in the beginning of this page, the load indicator is centered in the white box.
Last updated