core/common/progress-bar.component.ts
Use `c8y-loading` instead.
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"
[style.width]="progress + '%'"
[attr.aria-label]="'Progress' | translate"
aria-valuemin="0"
aria-valuemax="100"
[attr.aria-valuenow]="progress"
role="progressbar"
></div>
</div>
<div
class="spinner-snake"
*ngIf="progress === null"
></div>
<p
class="text-center"
*ngIf="message"
>
{{ message | translate }}
</p>
</div>