1.0.1 • Published 6 years ago
spa-component-progress-bar v1.0.1
Progress bar component
Progress bar is a component to build user interface, an instance of Component module.
Installation
npm install spa-component-progress-bar
Usage
Add the constructor to the scope:
var ProgressBar = require('spa-component-progress-bar');
Create progress bar instance:
var progressBar = new ProgressBar({
$node: window.pmProgressBar,
min: -100,
max: 200,
events: {
done: function () {
console.log('ProgressBar: done');
},
change: function ( data ) {
console.log('ProgressBar: change to ' + data.curr + ' from ' + data.prev);
}
}
});
Development mode
There is a global var
DEVELOP
which activates additional consistency checks and protection logic not available in release mode.
Contribution
If you have any problems or suggestions please open an issue according to the contribution rules.
License
spa-component-progress-bar
is released under the MIT License.