LoadIndicator

The LoadIndicator is a UI element notifying the viewer that a process is in progress.

Included in: dx.mobile.js, dx.web.js, dx.viz-web.js, dx.all.js
Export: default
LoadIndicator interactive configuration
Copy Code
Copy to Codepen
$("#loadindicator").dxLoadIndicator({
});

You can create the widget using one of the following approaches.

  • jQuery

    HTML
    <div id="loadIndicator"></div>
    JavaScript
    $(function () {
        $("#loadIndicator").dxLoadIndicator({
            visible: true
        });
    });
  • Angular

    HTML
    <dx-load-indicator [(visible)]="isLoadIndicatorVisible"></dx-load-indicator>
    JavaScript
    export class AppComponent {
        isLoadIndicatorVisible = true;
    }
  • AngularJS

    HTML
    <div ng-controller="DemoController">
        <div dx-load-indicator="{
            bindingOptions: {
                visible: 'isLoadIndicatorVisible'
            }
        }"></div>
    </div>
    JavaScript
    angular.module('DemoApp', ['dx'])
        .controller("DemoController", function ($scope) {
            $scope.isLoadIndicatorVisible = true;
        });
  • Knockout

    HTML
    <div data-bind="dxLoadIndicator: {
        visible: isLoadIndicatorVisible
    }"></div>
    JavaScript
    var viewModel = {
        isLoadIndicatorVisible: ko.observable(true)
    };
    ko.applyBindings(viewModel);
  • ASP.NET MVC Wrappers

    Razor C#
    Razor VB
    @(Html.DevExtreme().LoadIndicator()
        .ID("loadIndicator")
        .Visible(true)
    )
    @(Html.DevExtreme().LoadIndicator() _
        .ID("loadIndicator") _
        .Visible(True)
    )

Note that DevExtreme widgets require you to link the jQuery library to your application. If you use the Knockout or AngularJS approach, the Knockout or AngularJS library is also required. For detailed information on linking these libraries to your project, refer to the topics in the Installation section.

View Demo

See Also
Show Example:
AngularJS
Knockout
jQuery

Configuration

This section describes the configuration options of the LoadIndicator widget.

Methods

This section describes members used to manipulate the widget.

Events

This section describes events fired by this widget.