📅 You're Invited: Meet the Socket team at RSAC (April 28 – May 1).RSVP
Socket
Sign inDemoInstall
Socket

stepper-progress-bar

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

stepper-progress-bar

This library represent a progress bar component that has steps in it. I used this [tutorial](https://medium.com/@beyondborders/building-a-responsive-progress-bar-ea5a0ecabe91) to create this component to be reusable in Angular.

0.0.8
latest
Source
npm
Version published
Weekly downloads
13
30%
Maintainers
1
Weekly downloads
 
Created
Source

StepperProgressBar

This library represent a progress bar component that has steps in it. I used this tutorial to create this component to be reusable in Angular.

Install

npm install stepper-progress-bar

in your app.module.ts file:

//...
import { StepperProgressBarModule } from 'stepper-progress-bar'
//...
@NgModule({
  //...
  imports: [
    //...
    StepperProgressBarModule,
    //...
  ],
  /...
})
export class AppModule { }

How to Use

Your component HTML:

    <lib-stepperProgressBar  [controller]="progressStepper" [steps]="steps"></lib-stepperProgressBar>

    <button (click)="back()">Back</button>//a button to go to previous step
    <button (click)="next()">Next</button>//a button to go to next step

Your component .TS:

import { Step, StepperProgressBarController } from 'stepper-progress-bar';
//...
    steps:Step[] = new Array<Step>();
    progressStepper:StepperProgressBarController = new StepperProgressBarController();
    //...
    this.steps.push(new Step('Step 1'));
    this.steps.push(new Step('Step 2'));
    this.steps.push(new Step('Step 3'));
    //...
    next(){
        this.progressStepper.nextStep();
    }
    back(){
        this.progressStepper.previousStep();
    }

You can now have a vertical stepper progress bar:

in the html:

    <lib-stepperProgressBar [isVertical]="isVertical" [controller]="progressStepper" [steps]="steps"></lib-stepperProgressBar>

in .TS

  isVertical=true;

FAQs

Package last updated on 28 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts