core/common/progress-bar.component.ts
selector | c8y-progress-bar |
templateUrl | ./progress-bar.component.html |
Inputs |
message |
Type : string
|
Default value : gettext('Loading…')
|
progress |
Type : number
|
Default value : null
|
<div class="bg-inherit">
<div class="progress progress-striped active" *ngIf="progress !== null">
<div
class="progress-bar"
role="progressbar"
[attr.aria-valuenow]="progress"
aria-valuemin="0"
aria-valuemax="100"
[style.width]="progress + '%'"
></div>
</div>
<div class="spinner-snake" *ngIf="progress === null"></div>
<p *ngIf="message">
{{ message | translate }}
</p>
</div>