-
Notifications
You must be signed in to change notification settings - Fork 160
Linear Progress Bar Specification
The Linear Progress Bar provides the ability to display a single-line bar with its state changes. The value property determines the load state. The size of the filed-in part is calculated as percentage based on the current value vs the max value. The default max value is 100. The progress bar does not interact with the end-user and is read-only, i.e. the user could not change its state.
The progress bar aims at expanding the Ignite UI JS Blocks control set. It is providing minimal API for the most common use cases, leaving maximum flexibility in developer hands. It follows the mobile-first approach and should be suitable for hybrid applications.
As a citizen developer I want to be able to display linearly certain progress for a concrete action so that the end-users know how much a task has been completed.
As a citizen developer I want to be able to implement different linear progress bar visual styles so that I can integrate it better with the overall look and feel of the application.
As a developer I would like to hide, show, change the position and override the text which linear progress bar shows.
<igx-linear-bar [striped]="false" [value]="currentValue" [max]="200">
</igx-linear-bar>
<igx-linear-bar [striped]="false" [value]="currentValue" [max]="200"
[textVisibility]="true" [textTop]="true" [textAlign]="position">
</igx-linear-bar>
As an end user, I want to be given a visual representation of how much a task or an action has been completed as percentage or any other indication, so that I can know how much of the task/action was done. As an end user, I want to have linear progress bars with different styles, so that it matches the overall look and feel of the application
- Have linear progressive bar that shows increasing and decreasing action.
- The progress bar must have a type (Default, Warning, Danger, Info, Success) changing its background color.
- The progress bar must indicate the current state as percentage and display it as such or any other way.
- The progress should have transition animation.
- The linear progress bar should support different styling – stripped and solid color.
- Value and max must be configurable through the API.
- The default text value should be modifiable.
- The text of the linear bar must have ability to change its alignment(start, center, end) and position(top, bottom).
The linear progress indicator should always fill from 0% to 100% and never decrease in value.
Max: Maximum value that can be passed. Value: Precise value between 0 and Max (maximum value that can be passed to progress bar.) Type of progress bars which sets the background color of the bar - Default, Warning, Danger, Info, Success Progress bar animation - Transition (css) Progress bar striped - Background-image (css-linear-gradients)
The end user interface consists of:
- Progress bar container
- Five color options for the progress bar that fill in the container from left to right.
- Visual representation of the progress as percentage value followed by the % symbol.
The end-user will not interact with the progress bar.
You should be able to configure the igx-linear-bar
and igx-circular-bar
by passing an Options object to it. It should be able to override methods of Options object.
-
igx-linear-bar
properties -
max
- should set maximum value that can be passed. -
type
- should Set type of the linear bar. Possible options -default
,success
,info
,warning
anddanger
. -
value
- should set value that indicates the completed bar position. -
stripped
-should set bar to have striped style. -
animate
- animation on progress bar - Methods
-
getValue()
- get the progress value. -
getPercentValue()
- get the value in percentage. - Methods External
-
getValueInRange()
- validate passed value to progress bar to be in range between min(0) and max. - Events
-
onProgressChanged
- exposed event, that could be handled to track progress changing
Roles:
- The linear bar has the
progressbar
role. https://www.w3.org/TR/wai-aria/roles#progressbar
Attributes:
The linear bar has the following attributes:
-
aria-valuenow
- https://www.w3.org/TR/wai-aria/states_and_properties#aria-valuenow -
aria-valuemin
- https://www.w3.org/TR/wai-aria/states_and_properties#aria-valuemin -
aria-valuemax
- https://www.w3.org/TR/wai-aria/states_and_properties#aria-valuemax