-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit ba953ab
Showing
24 changed files
with
8,834 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
node_modules/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
The MIT License (MIT) | ||
|
||
Copyright (c) 2016 Naufal Rabbani | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
# Vue 2 Loading Bar | ||
Simplest Youtube Like Loading Bar Component For [Vue 2](http://vuejs.org/) | ||
|
||
[DEMO](https://bosnaufal.github.io/vue2-loading-bar) | ||
|
||
## Install | ||
You can import [vue2-loading-bar](./src/js/components/index.js) to your vue component file like [this](./src/js/App.js) and process it with your preprocessor. | ||
|
||
or | ||
|
||
You can install it via NPM | ||
```bash | ||
npm install vue2-loading-bar | ||
``` | ||
|
||
or | ||
|
||
just include [vue2-loading-bar.min.js](./build/vue2-loading-bar.min.js) to your view like [this](./index.html) | ||
|
||
|
||
## Usage | ||
In Your HTML: | ||
```html | ||
<loading-bar | ||
id="loading-bar-id" | ||
custom-class="custom-class" | ||
:on-error-done="errorDone" | ||
:on-progress-done="progressDone" | ||
:progress="progress" | ||
:direction="direction" | ||
:error="error" > | ||
</loading-bar> | ||
``` | ||
|
||
|
||
## Props | ||
##### id (String) | ||
custom Id in vue2-loading-bar component | ||
|
||
##### customClass (String) | ||
custom className in vue2-loading-bar component | ||
|
||
##### progress (Number) | ||
The Progress Percentage of vue2-loading-bar component | ||
|
||
##### direction (String) | ||
The Animation Direction of vue2-loading-bar component. You can fill it with `'right'` or `'left'` default is `'right'` | ||
|
||
##### error (Boolean) | ||
Indicate the component to showing the error state. | ||
|
||
##### onErrorDone (Function, required) | ||
Should change the parent state when the loading-bar has finished with its error state | ||
|
||
##### onProgressDone (Function, required) | ||
Should netralize the parent's progress state to be `0` | ||
|
||
|
||
## Thank You for Making this useful~ | ||
|
||
## Let's talk about some projects with me | ||
Just Contact Me At: | ||
- Email: [[email protected]](mailto:[email protected]) | ||
- Skype Id: bosnaufal254 | ||
- twitter: [@BosNaufal](https://twitter.com/BosNaufal) | ||
|
||
## License | ||
[MIT](http://opensource.org/licenses/MIT) | ||
Copyright (c) 2016 - forever Naufal Rabbani |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.