-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(demo): added wrapper to progressbar (#3752)
- Loading branch information
Showing
4 changed files
with
34 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
<progressbar class="progress-striped active" [value]="136" type="danger"><i>136 / 150</i></progressbar> | ||
<div class="mb-2"> | ||
<progressbar class="progress-striped active" [value]="136" type="danger"><i>136 / 150</i></progressbar> | ||
</div> |
23 changes: 13 additions & 10 deletions
23
demo/src/app/components/+progressbar/demos/dynamic/dynamic.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,14 @@ | ||
<progressbar [max]="max" [value]="dynamic"> | ||
<span style="color:white; white-space:nowrap;">{{dynamic}} / {{max}}</span> | ||
</progressbar> | ||
|
||
<small><em>No animation</em></small> | ||
<progressbar [animate]="false" [value]="dynamic" type="success"><b>{{dynamic}}%</b></progressbar> | ||
|
||
<small><em>Object (changes type based on value)</em></small> | ||
<progressbar class="progress-striped active" [value]="dynamic" [type]="type">{{type}}</progressbar> | ||
|
||
<div class="mb-2"> | ||
<progressbar [max]="max" [value]="dynamic"> | ||
<span class="text-nowrap">{{dynamic}} / {{max}}</span> | ||
</progressbar> | ||
<small><em>No animation</em></small> | ||
</div> | ||
<div class="mb-2"> | ||
<progressbar [animate]="false" [value]="dynamic" type="success"><b>{{dynamic}}%</b></progressbar> | ||
<small><em>Object (changes type based on value)</em></small> | ||
</div> | ||
<div class="mb-3"> | ||
<progressbar class="progress-striped active" [value]="dynamic" [type]="type">{{type}}</progressbar> | ||
</div> | ||
<button type="button" class="btn btn-sm btn-primary" (click)="random()">Randomize</button> |
15 changes: 9 additions & 6 deletions
15
demo/src/app/components/+progressbar/demos/stacked/stacked.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,10 @@ | ||
<div class="row col-lg-12"> | ||
<progressbar class="progress" [value]="stacked" [max]="100"></progressbar> | ||
</div> | ||
<br> | ||
<div class="row col-md-12"> | ||
<button type="button" class="btn btn-sm btn-primary" (click)="randomStacked()">Randomize</button> | ||
<div class="row"> | ||
<div class="col-lg-12"> | ||
<div class="mb-3"> | ||
<progressbar class="progress" [value]="stacked" [max]="100"></progressbar> | ||
</div> | ||
</div> | ||
<div class="col-lg-12"> | ||
<button type="button" class="btn btn-sm btn-primary" (click)="randomStacked()">Randomize</button> | ||
</div> | ||
</div> |
12 changes: 9 additions & 3 deletions
12
demo/src/app/components/+progressbar/demos/static/static.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,17 @@ | ||
<div class="row"> | ||
<div class="col-sm-4"> | ||
<progressbar [value]="55"></progressbar> | ||
<div class="mb-2"> | ||
<progressbar [value]="55"></progressbar> | ||
</div> | ||
</div> | ||
<div class="col-sm-4"> | ||
<progressbar [value]="22" type="warning" [striped]="true">22%</progressbar> | ||
<div class="mb-2"> | ||
<progressbar [value]="22" type="warning" [striped]="true">22%</progressbar> | ||
</div> | ||
</div> | ||
<div class="col-sm-4"> | ||
<progressbar max="200" [value]="166" type="danger" [striped]="true" [animate]="true"><i>166 / 200</i></progressbar> | ||
<div class="mb-2"> | ||
<progressbar max="200" [value]="166" type="danger" [striped]="true" [animate]="true"><i>166 / 200</i></progressbar> | ||
</div> | ||
</div> | ||
</div> |