-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Sadra Hoseini edited this page Apr 30, 2020
·
3 revisions
Simple customizeable page loader component with self state manager module for Vue.js.
github repository
Please let me know what you think about this package. Don't forget to report bugs.
Install package in your project with this command
npm i -S sadrix-vue-page-loader
Import package inside your Vuejs application config file and let you global Vue
instance use it as a plugin:
import SadrixPageLoader from 'sadrix-page-loader';
import Vue from 'vue';
Vue.use(SadrixPageLoader);
Your done! Now easily can use <page-loader/>
component any where inside your application.
- example: in your
.vue
template file
<div>
<page-loader/>
</div>
Yes! you can easily customize your page loader from your components attributes and passing props to component.
- example: change color of loader
<div>
<page-loader color="#ff5252"/>
</div>
For faster and easier use of colors in js project we also publish an amasing
Vue.js
plugin. you can use it to pass colors in your project easily. Github npm
-
example: change height of page loader
Please note you need to pass height prop as a
Number
(Don't forget:
of height attr).
<div>
<page-loader :height="3"/>
</div>
-
example: wow!😯 RTL support 😍
Its easy! just pass
:rtl="true"
.
<div>
<page-loader :rtl="true"/>
</div>
build your amasing app with a beautiful page loader! 😉