1.2.2 • Published 3 years ago

sj-progress-bar v1.2.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

SJ Progress Bar

A fully dynamic progress bar for Angular applications.

npm.io

Installation

npm install sj-progress-bar --save

Usage

Import the SJProgressBarModule.

import { SJProgressBarModule } from 'sj-progress-bar';
@NgModule({
  imports: [
    ...
    SJProgressBarModule
  ]
  ...
})
export class AppModule { }

Include sj-progress-bar in your component html file.

<sj-progress-bar></sj-progress-bar>

Customize the the sj-progress-bar for your application

You can use the following properties to customize the sj-progress-bar component in your template:

Options

OptionDefaultValuesDescription
value00-100The value of the progress bar between 0-100.
color#1976d2Any colorThe color of the progress bar. You can give any color of your choice
stripesfalsetrue/falseIt is a boolean value which can enable or disable the stripes animation
showPercentagefalsetrue/falseThis flag helps to hide and show the percentage value of the progress bar.
percentagePositioncenterleft/center/rightThis attribute can positioning the pecentage value
percentageColordarkdark/lightThis can change the percentage color to dark or light

Example:

<sj-progress-bar 
            [value]="100" 
            [stripes]="true" 
            color="blue" 
            [showPercentage]="true"
            percentagePosition="left"
></sj-progress-bar>

Demo

Simple examples using sj-progress-bar:

Online demo available here

Author

Shiljith Mp (Angular Developer)

License

MIT