JavaScript/jQuery LoadIndicator Options
This section describes the configuration options of the LoadIndicator widget.
elementAttr
Specifies the attributes to be attached to the widget's root element.
jQuery
$(function(){
    $("#loadIndicatorContainer").dxLoadIndicator({
        // ...
        elementAttr: {
            id: "elementId",
            class: "class-name"
        }
    });
});Angular
<dx-load-indicator ...
    [elementAttr]="{ id: 'elementId', class: 'class-name' }">
</dx-load-indicator>
import { DxLoadIndicatorModule } from "devextreme-angular";
// ...
export class AppComponent {
    // ...
}
@NgModule({
    imports: [
        // ...
        DxLoadIndicatorModule
    ],
    // ...
})ASP.NET MVC Control
@(Html.DevExtreme().LoadIndicator()
    .ElementAttr("class", "class-name")
    // ===== or =====
    .ElementAttr(new {
        @id = "elementId",
        @class = "class-name"
    })
    // ===== or =====
    .ElementAttr(new Dictionary<string, object>() {
        { "id", "elementId" },
        { "class", "class-name" }
    })
)@(Html.DevExtreme().LoadIndicator() _
    .ElementAttr("class", "class-name")
    ' ===== or =====
    .ElementAttr(New With {
        .id = "elementId",
        .class = "class-name"
    })
    ' ===== or =====
    .ElementAttr(New Dictionary(Of String, Object) From {
        { "id", "elementId" },
        { "class", "class-name" }
    })
)height
Specifies the widget's height.
This option accepts a value of one of the following types:
- Number 
 The height in pixels.
- String 
 A CSS-accepted measurement of height. For example,- "55px",- "80%",- "auto",- "inherit".
- Function 
 A function returning either of the above. For example:JavaScript- height: function() { return window.innerHeight / 1.5; }
hint
Specifies text for a hint that appears when a user pauses on the widget.
onContentReady
A function that is executed when the widget's content is ready and each time the content is changed.
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | The model data. Available only when using Knockout. | 
onDisposing
A function that is executed before the widget is disposed of.
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| model | The model data. Available only if you use Knockout. | 
onInitialized
A function that is executed only once, after the widget is initialized.
Information about the event.
| Name | Type | Description | 
|---|---|---|
| component | The widget's instance. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | 
You cannot access widget elements in this function because it is executed before they are ready. Use the onContentReady function instead.
onOptionChanged
A function that is executed after a widget option is changed.
Information about the event.
| Name | Type | Description | 
|---|---|---|
| name | The option's short name. | |
| model | The model data. Available only if you use Knockout. | |
| element | The widget's container. It is an HTML Element or a jQuery Element when you use jQuery. | |
| component | The widget's instance. | |
| fullName | The option's full name. | |
| value | any | The option's new value. | 
rtlEnabled
Switches the widget to a right-to-left representation.
When this option is set to true, the widget text flows from right to left, and the layout of elements is reversed. To switch the entire application/site to the right-to-left representation, assign true to the rtlEnabled field of the object passed to the DevExpress.config(config) method.
DevExpress.config({
    rtlEnabled: true
});See Also
- Right-to-Left Support Demo: DataGrid | Navigation Widgets | Editors
width
Specifies the widget's width.
This option accepts a value of one of the following types:
- Number 
 The width in pixels.
- String 
 A CSS-accepted measurement of width. For example,- "55px",- "80%",- "auto",- "inherit".
- Function 
 A function returning either of the above. For example:JavaScript- width: function() { return window.innerWidth / 1.5; }
If you have technical questions, please create a support ticket in the DevExpress Support Center.