beginUpdate()
Prevents the widget from refreshing until the endUpdate() method is called.
The beginUpdate() and endUpdate() methods prevent the widget from excessive updates when you are changing multiple widget settings at once. After the beginUpdate() method is called, the widget does not update its UI until the endUpdate() method is called.
See Also
defaultOptions(rule)
defaultOptions is a static method that the widget class supports. The following code demonstrates how to specify default options for all instances of the LoadIndicator widget in an application executed on the desktop.
jQuery
DevExpress.ui.dxLoadIndicator.defaultOptions({ device: { deviceType: "desktop" }, options: { // Here go the LoadIndicator options } });
Angular
import LoadIndicator from "devextreme/ui/load_indicator"; // ... export class AppComponent { constructor () { LoadIndicator.defaultOptions({ device: { deviceType: "desktop" }, options: { // Here go the LoadIndicator options } }); } }
Vue
<template> <div> <dx-load-indicator id="loadIndicator1" /> <dx-load-indicator id="loadIndicator2" /> </div> </template> <script> import DxLoadIndicator from "devextreme-vue/load-indicator"; import LoadIndicator from "devextreme/ui/load_indicator"; LoadIndicator.defaultOptions({ device: { deviceType: "desktop" }, options: { // Here go the LoadIndicator options } }); export default { components: { DxLoadIndicator } } </script>
React
import React from "react"; import dxLoadIndicator from "devextreme/ui/load_indicator"; import LoadIndicator from "devextreme-react/load-indicator"; class App extends React.Component { render () { dxLoadIndicator.defaultOptions({ device: { deviceType: "desktop" }, options: { // Here go the LoadIndicator options } }) return ( <div> <LoadIndicator id="loadIndicator1" /> <LoadIndicator id="loadIndicator2" /> </div> ) } } export default App;
dispose()
The following code disposes of an LoadIndicator instance that corresponds to the element ID (or reference variable in Angular) and removes the element from the DOM:
jQuery
$("#myLoadIndicator").dxLoadIndicator("dispose"); $("#myLoadIndicator").remove();
Angular
<dx-load-indicator #loadIndicatorVar id="myLoadIndicator"></dx-load-indicator>
import { ..., ViewChild } from "@angular/core"; import { DxLoadIndicatorComponent } from "devextreme-angular"; // ... export class AppComponent { @ViewChild("loadIndicatorVar") loadIndicator: DxLoadIndicatorComponent; removeLoadIndicator (e) { this.loadIndicator.instance.dispose(); document.getElementById("myLoadIndicator").remove(); } }
endUpdate()
Refreshes the widget after a call of the beginUpdate() method.
Main article: beginUpdate()
See Also
getInstance(element)
getInstance is a static method that the widget class supports. The following code demonstrates how to get the LoadIndicator instance found in an element with the myLoadIndicator
ID:
// Modular approach import LoadIndicator from "devextreme/ui/load_indicator"; ... let element = document.getElementById("myLoadIndicator"); let instance = LoadIndicator.getInstance(element) as LoadIndicator; // Non-modular approach let element = document.getElementById("myLoadIndicator"); let instance = DevExpress.ui.dxLoadIndicator.getInstance(element);
See Also
option()
See Also
- Get and Set Options
- Call Methods: jQuery | Angular | AngularJS | Knockout | Vue | React | ASP.NET MVC
option(optionName)
See Also
- Get and Set Options
- Call Methods: jQuery | Angular | AngularJS | Knockout | Vue | React | ASP.NET MVC
option(optionName, optionValue)
See Also
- Get and Set Options
- Call Methods: jQuery | Angular | AngularJS | Knockout | Vue | React | ASP.NET MVC
option(options)
See Also
- Get and Set Options
- Call Methods: jQuery | Angular | AngularJS | Knockout | Vue | React | ASP.NET MVC
If you have technical questions, please create a support ticket in the DevExpress Support Center.