Last updated 4 years ago
To use Progress Bar, first import SharedModule in your module.
SharedModule
import {SharedModule} from '@gaxon/modules'; @NgModule({ ... imports: [SharedModule, ...], ... }) export class YourAppModule { }
<ngb-progressbar type="success" [value]="25"></ngb-progressbar> <ngb-progressbar type="info" [value]="50"></ngb-progressbar> <ngb-progressbar type="warning" [value]="75"></ngb-progressbar> <ngb-progressbar type="danger" [value]="100"></ngb-progressbar>
<ngb-progressbar type="success" [value]="25">25</ngb-progressbar> <ngb-progressbar type="info" [value]="50">Copying file 2 of 4...</ngb-progressbar> <ngb-progressbar type="warning" [value]="75" [striped]="true" [animated]="true"><i>50%</i></ngb-progressbar> <ngb-progressbar type="danger" [value]="100" [striped]="true">Completed!</ngb-progressbar>
<ngb-progressbar showValue="true" type="success" [value]="25"></ngb-progressbar> <ngb-progressbar [showValue]="true" type="info" [value]="50"></ngb-progressbar> <ngb-progressbar showValue="true" type="warning" [value]="150" [max]="200"></ngb-progressbar> <ngb-progressbar [showValue]="true" type="danger" [value]="150" [max]="150"></ngb-progressbar>
<ngb-progressbar type="success" [value]="25">default</ngb-progressbar> <ngb-progressbar type="info" [value]="50" height="10px">10px</ngb-progressbar> <ngb-progressbar type="warning" [value]="75" height=".5rem">.5rem</ngb-progressbar> <ngb-progressbar type="danger" [value]="100" [height]="height">{{height}}</ngb-progressbar>
For more information about options, check the Ng-Bootstrap