@lesfabricants/ngx-progress
TypeScript icon, indicating that this package has built-in type declarations

2.0.0 • Public • Published

ngx-progress

A small utility directive to create progress bars without having to hack your way through css overwrites

Progress preview

<ng-template
  class="horizontal-progress-bar"
  *ngxProgress="
    let percentages of ['reviewed', 'pending'];
    in: answers;
    key: 'status'
  "
>
  <div class="progress-item dark-blue" [style.width.%]="percentages[0]"></div>
  <div class="progress-item cyan" [style.width.%]="percentages[1]"></div>
</div>
<div
  class="horizontal-progress-bar"
  *ngxProgress="
    let percentages of ['reviewed', 'pending'];
    in: answers;
    key: 'status'
  "
>
  <div class="progress-item dark-blue" [style.width.%]="percentages[0]"></div>
  <div class="progress-item cyan" [style.width.%]="percentages[1]"></div>
</div>
answers = [
  {
    status: 'pending',
    comment: 'answer 1',
  },
  {
    status: 'pending',
    comment: 'answer 2',
  },
  {
    status: 'reviewed',
    comment: 'answer 3',
  },
];

How to use

The library documentation is available over at https://lesfabricants.github.io/libraries/#/progress

 

This library was generated with Angular CLI version 16.1.0.

Package Sidebar

Install

npm i @lesfabricants/ngx-progress

Weekly Downloads

2

Version

2.0.0

License

none

Unpacked Size

16.5 kB

Total Files

10

Last publish

Collaborators

  • morgane7380274
  • benjamindequevauviller
  • augustin_b
  • coralie
  • julienlesfabricants
  • anthonyl_web