DevExtreme Angular - Show and Hide Using the API
NOTE
In this article, the Button widget is used to demonstrate how to show and hide the LoadIndicator. This choice is made for purely demonstrational purposes, and you can do the same operations using another widget following the same guidelines.
To specify whether the LoadIndicator is shown, change the visible option.
HTML
TypeScript
- <dx-load-indicator
- [(visible)]="isLoadIndicatorVisible">
- </dx-load-indicator>
- <dx-button
- text="Toggle the LoadIndicator"
- (onClick)="isLoadIndicatorVisible = !isLoadIndicatorVisible">
- </dx-button>
- import { DxLoadIndicatorModule, DxButtonModule } from "devextreme-angular";
- // ...
- export class AppComponent {
- isLoadIndicatorVisible: boolean = true;
- }
- @NgModule({
- imports: [
- // ...
- DxLoadIndicatorModule,
- DxButtonModule
- ],
- // ...
- })
See Also
- Handle Events: Angular | Vue | React | jQuery | AngularJS | Knockout | ASP.NET MVC 5 | ASP.NET Core
- LoadIndicator Demos
- LoadIndicator API Reference
Feel free to share topic-related thoughts here.
If you have technical questions, please create a support ticket in the DevExpress Support Center.
Thank you for the feedback!
If you have technical questions, please create a support ticket in the DevExpress Support Center.