-
Notifications
You must be signed in to change notification settings - Fork 161
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.
<igx-linear-bar [striped]="false" [value]="currentValue" [max]="200">
</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, 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
##Acceptance criteria
- Have linear progressive bar that shows only increasing 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.
- 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 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 Progress Bar has the progressbar role. https://www.w3.org/TR/wai-aria/roles#progressbar
Attributes:
- The Linear Progress Bar has the aria-valuenow attribute. https://www.w3.org/TR/wai-aria/states_and_properties#aria-valuenow
- The Linear Progress Bar has the aria-valuemin attribute. https://www.w3.org/TR/wai-aria/states_and_properties#aria-valuemin
- The Linear Progress Bar has the aria-valuemax attribute. https://www.w3.org/TR/wai-aria/states_and_properties#aria-valuemax