Angular LoadPanel - Customize the Loading Indicator
To use a custom load indicator image, set indicatorOptions.src to the image URL.
app.component.html
app.component.ts
- <dx-load-panel
- [hideOnOutsideClick]="true"
- [indicatorOptions]="indicatorOptions">
- </dx-load-panel>
- import type { DxLoadPanelTypes } from 'devextreme-angular/ui/load-panel';
- // ...
- export class AppComponent {
- indicatorOptions: DxLoadPanelTypes.LoadPanelIndicatorProperties = {
- src: "https://js.devexpress.com/Content/data/loadingIcons/rolling.svg"
- };
- }
To hide a load indicator, disable the showIndicator property.
app.component.html
- <dx-load-panel
- [hideOnOutsideClick]="true"
- [showIndicator]="false">
- </dx-load-panel>