ts-basic-components-loadingprogress.md 920 字节
Newer Older
1 2
# LoadingProgress

E
ester.zhou 已提交
3 4 5
The **\<LoadingProgress>** component is used to create a loading animation.

>  **NOTE**
E
ester.zhou 已提交
6
> This component is supported since API version 8. Updates will be marked with a superscript to indicate their earliest API version.
7

E
ester.zhou 已提交
8

9 10
## Child Components

E
ester.zhou 已提交
11
Not supported
12

E
ester.zhou 已提交
13

14 15 16 17
## APIs

LoadingProgress()

E
ester.zhou 已提交
18
Creates a **\<LoadingProgress>** component.
E
ester.zhou 已提交
19

20 21
## Attributes

E
ester.zhou 已提交
22 23 24
| Name| Type| Description|
| -------- | -------- | -------- |
| color | [ResourceColor](ts-types.md#resourcecolor) | Foreground color of the **\<LoadingProgress>** component.|
25 26 27

## Example

E
ester.zhou 已提交
28 29
```ts
// xxx.ets
30 31 32 33 34 35 36 37 38 39 40 41 42
@Entry
@Component
struct LoadingProgressExample {
  build() {
    Column({ space: 5 }) {
      Text('Orbital LoadingProgress ').fontSize(9).fontColor(0xCCCCCC).width('90%')
      LoadingProgress()
        .color(Color.Blue)
    }.width('100%').margin({ top: 5 })
  }
}
```

E
ester.zhou 已提交
43
![en-us_image_000000111864201](figures/en-us_image_000000111864201.gif)