Skip to content

XML widget to create native gauge for Android and Ios in NativeScript apps.

Notifications You must be signed in to change notification settings

topperblues/nativescript-gauge

Repository files navigation

NativeScript-Gauge

XML widget to create native Gauge for Android and Ios in NativeScript apps. A fork of nativescript-progressbar by sebawita

Works with

Android and Ios

Installation

npm install nativescript-gauge

Usage

CircleProgressBar

<page xmlns:pb="nativescript-progressbar">
    <pb:CircleProgressBar
       progress="{{progress}}"
                       text="{{message}}"
                       android:textSize="100"
                       android:widthProgressBackground="0"
                       android:widthProgressBarLine="20"
                       ios:textSize="60"
                       ios:widthProgressBackground="2"
                       ios:widthProgressBarLine="3"
                       ios:textStyle="thin"
                       textColor="white"
                       backgroundColor="white"
                       progressColor="#F29100"
                       linearGradient="false"
                       width="100"
                       height="100"
    />
</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 number
textColor Sets the color of the text color
textStyle Sets the weight of the text string
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

textStyle work only in ios: Ios textStyle options: thin, light, regular, medium, semibold, bold

Notes

About

XML widget to create native gauge for Android and Ios in NativeScript apps.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published