You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2019. It is now read-only.
feat(progressbar): add max attribute & support transclusion
* General refactor. Move logic to controller.
* Remove `onFull` & `onEmpty` handlers.
* Remove automatic types and stacked types.
* `progress` & `bar` transclude content to support text & extra elements.
BREAKING CHANGE: The onFull/onEmpty handlers & auto/stacked types have been removed.
To migrate your code change your markup like below.
Before:
<progress percent="var" class="progress-warning"></progress>
After:
<progressbar value="var" type="warning"></progressbar>
and for stacked instead of passing array/objects you can do:
<progress><bar ng-repeat="obj in objs" value="obj.var" type="{{obj.type}}"></bar></progress>
A lightweight progress bar directive that is focused on providing progress visualization!
1
+
A progress bar directive that is focused on providing feedback on the progress of a workflow or action.
2
2
3
-
The progress bar directive supports multiple (stacked) bars into the same element, optional transition animation, event handler for full & empty state and many more.
3
+
It supports multiple (stacked) bars into the same `<progress>` element or a single `<progressbar>` elemtnt with optional `max` attribute and transition animations.
4
+
5
+
### Settings ###
6
+
7
+
#### `<progressbar>` ####
8
+
9
+
*`value` <iclass="icon-eye-open"></i>
10
+
:
11
+
The current value of progress completed.
12
+
13
+
*`type`
14
+
_(Default: null)_ :
15
+
Style type. Possible values are 'success', 'warning' etc.
16
+
17
+
*`max`
18
+
_(Default: 100)_ :
19
+
A number that specifies the total value of bars that is required.
20
+
21
+
*`animate`
22
+
_(Default: true)_ :
23
+
Whether bars use transitions to achieve the width change.
24
+
25
+
26
+
### Stacked ###
27
+
28
+
Place multiple `<bars>` into the same `<progress>` element to stack them.
29
+
`<progress>` supports `max` and `animate` & `<bar>` supports `value` and `type` attributes.
0 commit comments