mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
21 lines
589 B
Markdown
21 lines
589 B
Markdown
---
|
|
nav-title: "activity-indicator How-To"
|
|
title: "How-To"
|
|
description: "Examples for using activity-indicator"
|
|
---
|
|
# ActivityIndicator
|
|
Using the activity indicator requires the ActivityIndicator module.
|
|
<snippet id='activity-indicator-require'/>
|
|
|
|
### Binding the activity indicator busy property to a view-model property.
|
|
``` XML
|
|
<Page>
|
|
{%raw%}<ActivityIndicator busy="{{ isLoading }}" />{%endraw%}
|
|
</Page>
|
|
```
|
|
### Creating an activity indicator
|
|
<snippet id='activity-indicator-create'/>
|
|
|
|
### Showing activity indicator while image is loading
|
|
<snippet id='activity-indicator-loading'/>
|