NativeScript Angular

Progress

The Progress widget is a visual bar indicator of a progress in a operation. It shows a bar representing the current progress of the operation.

Image

Usage

<Progress value="25" maxValue="100" (valueChanged)="onValueChanged($event)"></Progress>

Improve this document

Demo Source


Styling

<!-- 
    Using backgroundColor (CSS: background-color) & color to change the Progress style 
    Note; backgroundColor will work only on iOS; onAndroid the background will be the color with applied opacity
-->
<Progress value="50" maxValue="100" backgroundColor="red" color="green"></Progress>
<!-- Using the @nativescript/theme CSS class to change the Progress style -->
<Progress value="25" maxValue="100" class="progress"></Progress>

Improve this document

Demo Source


Tips And Tricks

<Progress (loaded)="onProgressBarLoaded($event)" 
          (valueChange)="onValueChanged($event)" 
          class="progress">
</Progress>

Improve this document

Demo Source


Properties

Name Type Description
value number Gets or sets a progress current value.
maxValue number Gets or sets a progress max value.

API References

Name Type
tns-core-modules/ui/progress Module
Progress Class

Native Component

Android iOS
android.widget.ProgressBar UIProgressView