This repository has been archived by the owner on May 29, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(progressbar): user
percent
attribute instead of value
.
Closes #535. Problem with IE10. BREAKING CHANGE: The 'value' is replaced by 'percent'. Before: <progress value="..."></progress> After: <progress percent="..."></progress>
- Loading branch information
1 parent
25f6e55
commit 58efec8
Showing
3 changed files
with
15 additions
and
15 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,27 +1,27 @@ | ||
<div ng-controller="ProgressDemoCtrl" class="well"> | ||
<h2>Static</h2> | ||
<div class="row-fluid"> | ||
<div class="span4"><progress value="55"></progress></div> | ||
<div class="span4"><progress value="22" class="progress-warning progress-striped"></progress></div> | ||
<div class="span4"><progress value="88" class="progress-danger progress-striped active"></div> | ||
<div class="span4"><progress percent="55"></progress></div> | ||
<div class="span4"><progress percent="22" class="progress-warning progress-striped"></progress></div> | ||
<div class="span4"><progress percent="88" class="progress-danger progress-striped active"></div> | ||
</div> | ||
|
||
<h2>Dynamic <button class="btn btn-primary" type="button" ng-click="random()">Randomize</button></h2> | ||
<pre>Value: {{dynamic}}</pre> | ||
<progress value="dynamic"></progress> | ||
<progress percent="dynamic"></progress> | ||
|
||
<small><em>No animation</em></small> | ||
<progress value="dynamic" class="progress-success" animate="false"></progress> | ||
<progress percent="dynamic" class="progress-success" animate="false"></progress> | ||
|
||
<small><em>Object (changes type based on value)</em></small> | ||
<progress value="dynamicObject" class="progress-striped active"></progress> | ||
<progress percent="dynamicObject" class="progress-striped active"></progress> | ||
|
||
<h2>Stacked <button class="btn btn-primary" type="button" ng-click="randomStacked()">Randomize</button></h2> | ||
<small><em>Array values with automatic types</em></small> | ||
<pre>Value: {{stackedArray}}</pre> | ||
<progress value="stackedArray" auto-type="true"></progress> | ||
<progress percent="stackedArray" auto-type="true"></progress> | ||
|
||
<small><em>Objects</em></small> | ||
<pre>Value: {{stacked}}</pre> | ||
<progress value="stacked"></progress> | ||
<progress percent="stacked"></progress> | ||
</div> |
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
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