0.0.11 • Published 2 years ago

ngx-stacked-progressbar v0.0.11

Weekly downloads
6
License
MIT
Repository
github
Last release
2 years ago

Ngx Stacked Progressbar

npm version

Simple 100% stacked progressbar

How to use it?

Install ngx-stacked-progressbar in your project:

npm install ngx-stacked-progressbar

Import the NgxStackedProgressbarModule in your app.module.ts:

import { MatFormFieldModule, MatSelectModule } from '@angular/material';
import { NgxMatSelectSearchModule } from 'ngx-stacked-progressbar';

@NgModule({
  imports: [
    NgxStackedProgressbarModule,
  ],
})
export class AppModule {}

Define data in your app.component.ts:

import { StackedProgressbarBlock } from 'ngx-stacked-progressbar/lib/ngx-stacked-progressbar.type';

...

export class AppComponent {
  public data: StackedProgressbarBlock[] = [
    {
      displayValue: 'Free Space',
      value: 40,
      tooltip: 'Free Space',
      bgColor:'#5cb85c'
    },
    {
      displayValue: 'Warning',
      value: 20,
      tooltip: 'Warning',
      bgColor: '#f0ad4e'
    },
    {
      displayValue: 'Danger',
      value: 20,
      tooltip: 'Danger',
      bgColor: '#d9534f'
    }
  ];

  ...

Use the ngx-stacked-progressbar component:

<ngx-stacked-progressbar [data]="data" width="700px" height="20px">
</ngx-stacked-progressbar>

Inputs

  @Input() fontSize = '12px';
  @Input() width = '100%';
  @Input() height = '24px';
  @Input() color = 'white';
  @Input() public data: StackedProgressbarBlock[] = [];
0.0.11

2 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.6

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago