require(["esri/dijit/util/busyIndicator"], function(busyIndicator) { /* code goes here */ });
Description
(Added at v3.13)
This module provides the ability to create a busy indicator for a target.
Samples
Search for
samples that use this class.
Methods
Method Details
Creates a busy indicator on a target. If specifying the target
, then the params
Object
is optional. If the target
if not included, then the params
Object
is required, and the params
target
must be specified. See the Object Specifications table below for the structure of the returned object handle.
Object Specifications: <params
>
<String > backgroundColor |
Required |
Hex color of the background. Default is #ffffff. |
<Number > backgroundOpacity |
Required |
Background opacity. Default is 0.75. |
<Number > fadeDuration |
Required |
Time, in milliseconds, that the fade in/out should take. Default is 200 milliseconds. |
<String > imageUrl |
Required |
URL of the image to center in the overlay. Default is "loading-throb.gif". |
<String | HTMLElement | _WidgetBase > target |
Required |
See the target parameter description for details. |
<String > zIndex |
Required |
S-index for the indicator's overlay. Default is "auto", which will try to place the overlay at the top-most level. |
<Object
>
<method > destroy() |
Required |
Destroys the control handle. |
<method > hide() |
Required |
Hide the busy indicator from the control handle. |
<method > show() |
Required |
Show the busy indicator from the control handle. |
Sample:
require([
"esri/dijit/util/busyIndicator", ...
], function(busyIndicator, ... ) {
var handle = busyIndicator.create("targetNodeId");
var handle = busyIndicator.create(targetNode);
var handle = busyIndicator.create("targetWidgetId");
var handle = busyIndicator.create(targetWidget);
var handle = busyIndicator.create({
target: targetNode,
imageUrl: "path/to/some/image",
fadeDuration: 200
});
});