https://github.com/tether/progress-bar
A slick progress bar to show status and movement through a set of defined steps.
https://github.com/tether/progress-bar
Last synced: 3 months ago
JSON representation
A slick progress bar to show status and movement through a set of defined steps.
- Host: GitHub
- URL: https://github.com/tether/progress-bar
- Owner: tether
- Created: 2013-09-22T17:33:00.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-01-27T22:30:13.000Z (over 11 years ago)
- Last Synced: 2025-02-15T07:50:01.967Z (5 months ago)
- Language: CSS
- Size: 137 KB
- Stars: 2
- Watchers: 4
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- Changelog: History.md
Awesome Lists containing this project
README
# Progress Bar
A simple piece of UI to show progress through a set of steps in a checkout, creation of something, etc.

## Installation
Install with [component(1)](http://component.io):
$ component install petrofeed/progress-bar
## Getting Started
To use Progress Bar, add the markup for the progress bar to your template.
Then create a new progress bar by passing in the string selector of the progress bar.
var progressBar = new ProgressBar('#my-progress-bar');
To change the active step of the progress bar, just call:
progressBar.changeActiveStep('processing');
The progress bar step names are defined in the `data-name` attributes on the list items in the `.steps` unordered list.## Styling
Progress bar comes with some ready to use default styling, but you can change the styling to fit your needs.
One easy way to do this is to add the classes you want applied to the "active" step and the "error" step, by adding them to the `aria-active-classes` and `aria-error-classes` attributes on the progress bar.
## Events
Two events are fired from the progress bar via jQuery:
`finished`: Triggered when the last step is set to active.
`error`: Triggered when the progress bar's error step is made active.
---
Proudly brought to you by [PetroFeed](http://PetroFeed.com).
