1.0.1 • Published 2 years ago

angular-bee-progress-bar v1.0.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

AngularBeeProgressBar

A progress bar for Angular 13+ with lots of styling options

Getting Started

Instalation

Install via npm package manager npm i angular-bee-progress-bar

Usage

Import angular-bee-progress-bar

import { AngularBeeProgressBarModule } from 'angular-bee-progress-bar';

 @NgModule({
   imports: [ AngularBeeProgressBarModule,]
 })

In html with standard options

<angular-bee-progress-bar
[totalNumberValue]="58"
[numberIndex]="12"
>
</angular-bee-progress-bar>

In html with options declared

<angular-bee-progress-bar
    [totalNumberValue]="value"
    [numberIndex]="index"
    [height]="4"
    [smooth]="true"
    [shadow]="false"
    [border]="true"
    [borderSize]=1
    [borderColor]="'blue'"
    [rounded]="false"
    [textDisplay]="true"
    [textColor]="'white'"
    [textSize]="2.5"
    [backgroundColor]="'transparent'"
  >
  </angular-bee-progress-bar>

Example of setting values from the component

value:number = 0;
index:number = 0;

methodThatContainsTheForLoop(){
this.value = maxIteratorValue;
this.index = 0;
for (this.index; this.index <=this.value; this.index++) {
//code goes here;

  }

}

Example of using an item count or page count

// The total amount of items to be counted
value:number = 27;

index:number = 0;

methodThatsCalledWhenItemNumberChanges(itemIndex:number){
  this.index = itemIndex;
}

Properties

NameTypeDefaultDescription
totalNumberValuenumbernoneThis is the maximum or total value of the items you are counting through
numberIndexnumber0This is the current position that the bar will be in. should be bound to a number iteration, the bar is listening for changes
smoothbooleanfalseSmooths the transition between index changes
shadowbooleantrueTurns off/on the bar shadow
roundedbooleantrueTurns off/on the rounded ends of the bar
borderbooleantrueTurns off/on the black border around the bar
textDisplaybooleanfalseDisplays a % of the position of the bar
heightnumber1Changes the height of the bar
textSizenumberheightChange the size of the display text, can't be larger than the bar height
colorstring'linear-gradient(90deg, yellow, red)'Changes the color of the bar, supports all css color types and gradients
textColorstring'black'Changes the display text color
borderSizenumber2Changes the width of the border in px
borderColorstring'black'Changes the color of the border
backgroundColorstring'white'Changes the color of the backround of the bar, 'transparent' can be used to set it to the color underneath

Screenshots

progress bar standard progress bar displayed text progress bar styled

Screenshots with dark background

progress bar dark screen

Notes

Version 0.x - 1.x Width removed. Width now looks to the parent container, so it works with flex and responsive layouts

1.0.1

2 years ago

0.1.2

2 years ago

0.1.0

2 years ago

0.1.1

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago