@lesfabricants/ngx-progress
v2.0.0
Published
A small utility directive to create progress bars without having to hack your way through css overwrites
Downloads
4
Readme
ngx-progress
A small utility directive to create progress bars without having to hack your way through css overwrites
<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.