Skip to content
XML widget to create native Progress Bars in NativeScript apps.
JavaScript TypeScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
app/App_Resources/Android 1.0.1 Mar 2, 2016
demo Adding demo project Mar 2, 2016
platforms/android 1.0 Mar 2, 2016
screens 1.0 Mar 2, 2016
.gitignore 1.0 Mar 2, 2016
.npmignore 1.0 Mar 2, 2016
README.md Fixed attributes table Mar 2, 2016
arcProgressBar-common.js 1.0.1 Mar 2, 2016
arcProgressBar-common.js.map 1.0.1 Mar 2, 2016
arcProgressBar-common.ts 1.0.1 Mar 2, 2016
arcProgressBar.android.js 1.0.1 Mar 2, 2016
arcProgressBar.android.js.map 1.0.1 Mar 2, 2016
arcProgressBar.android.ts 1.0.1 Mar 2, 2016
circleProgressBar-common.js 1.0 Mar 2, 2016
circleProgressBar-common.js.map 1.0 Mar 2, 2016
circleProgressBar-common.ts 1.0 Mar 2, 2016
circleProgressBar.android.js 1.0.1 Mar 2, 2016
circleProgressBar.android.js.map 1.0.1 Mar 2, 2016
circleProgressBar.android.ts 1.0.1 Mar 2, 2016
circleSegmentBar-common.js 1.0 Mar 2, 2016
circleSegmentBar-common.js.map 1.0 Mar 2, 2016
circleSegmentBar-common.ts 1.0 Mar 2, 2016
circleSegmentBar.android.js 1.0.1 Mar 2, 2016
circleSegmentBar.android.js.map 1.0.1 Mar 2, 2016
circleSegmentBar.android.ts 1.0.1 Mar 2, 2016
components.js 1.0.1 Mar 2, 2016
components.js.map 1.0.1 Mar 2, 2016
components.ts 1.0.1 Mar 2, 2016
lineProgressBar-common.js 1.0.1 Mar 2, 2016
lineProgressBar-common.js.map 1.0.1 Mar 2, 2016
lineProgressBar-common.ts 1.0.1 Mar 2, 2016
lineProgressBar.android.js 1.0.1 Mar 2, 2016
lineProgressBar.android.js.map 1.0.1 Mar 2, 2016
lineProgressBar.android.ts 1.0.1 Mar 2, 2016
package.json Fixed attributes table Mar 2, 2016

README.md

NativeScript-ProgressBar

A set of XML widget to create native Progress Bars in NativeScript apps.

Installation

npm install nativescript-progressbar

Screenshot


Animated Progress Bars

Type of available Progress Bars

  • CircleProgressBar
  • CircleSegmentBar
  • ArcProgressBar
  • LineProgressBar

Usage

CircleProgressBar

<page xmlns:pb="nativescript-progressbar">
    <pb:CircleProgressBar
        progress="{{progress}}"
        text="{{message}}"
        textSize="50"
        widthProgressBackground="20"
        widthProgressBarLine="50"
        backgroundColor="red"
        progressColor="blue"
        linearGradient="false"
        width="200"
    />
</page>

CircleSegmentBar

<page xmlns:pb="nativescript-progressbar">
    <pb:CircleSegmentBar
        progress="{{progress}}"
        text="{{message}}"
        textSize="50"
        widthProgressBackground="20"
        widthProgressBarLine="50"
        backgroundColor="red"
        progressColor="blue"
        linearGradient="false"
        width="200"
    />
</page>

ArcProgressBar

Note that ArcProgressBar doesn't have linearGradient property

<page xmlns:pb="nativescript-progressbar">
    <pb:ArcProgressBar
        progress="{{progress}}"
        text="{{message}}"
        textSize="50"
        widthProgressBackground="20"
        widthProgressBarLine="50"
        backgroundColor="red"
        progressColor="blue"
        width="200"
    />
</page>

LineProgressBar

<page xmlns:pb="nativescript-progressbar">
    <pb:LineProgressBar
        progress="{{progress}}"
        text="{{message}}"
        textSize="50"
        widthProgressBackground="20"
        widthProgressBarLine="50"
        backgroundColor="red"
        progressColor="blue"
        linearGradient="false"
        width="200"
    />
</page>

Attributes

Property Description Values
progress Sets the progress value number 0-100
text Sets the text in the middle of the progress bar text
textSize Sets the size of the text color of the button number
widthProgressBackground Sets the size of the progress background number
widthProgressBarLine Sets the size of the progress bar number
backgroundColor Sets the color of the progress background color
progressColor Sets the color of the progress bar color
linearGradient Sets the progress bar color to gradient boolean

Android Notes

You can’t perform that action at this time.