vue-full-loading

Full overlay with spinner for Vue
47,801 164
Install
npm install vue-full-loading
Latest Version:1.2.1
Vue:2
License:MIT
Last Updated:Aug 26, 2020
Links: GitHub  ·  npm
Maintainer: edujugon

Vue Full Loading

Full overlay with spinner for Vue.

Perfect for performing a task in the background avoiding any other action on the screen. Can be easily handled by your central event bus

Live Demo

Installation

npm install vue-full-loading --save

Properties

Properties Type Values
label String Default 'Loading...'
show Boolean Default false Options: true or false.
overlay Boolean Default true Options: true or false.
overlay-class String Default 'white-overlay'
loader-class String Default 'loader-wrapper'
event-bus Object Default null Central event Bus
event-show String Default 'show-full-loading'
event-hide String Default 'hide-full-loading'

Slots

Want to add your own loading content/style? No problem, you can use the available slots to do so.

Available slots:

  • loading-container - This is the container for the loading text/spinner
  • loading-text - Only for the loading text
  • loading-spinner - Only for the spinner

Examples

Include the component in your .vue file.

<template>
 <loading
     :show="show"
     :label="label">
 </loading>
</template>

You also can manage this component by your eventBus with custom event names.

<template>
 <loading
     :event-bus="myEventBus"
     event-show="show-my-full-loading"
     event-hide="hide-my-full-loading"
     :label="label">
 </loading>
</template>

Notice that if no event names passed it will use the default ones.

Match your data with your components props.

<script>
import loading from 'vue-full-loading'

export default {
  components: {
    loading
  },
   data(){
       return {
           show: false,
           label: 'Loading...'
       }
   }
}
</script>

Related Packages

vue-loading-overlay

Vue.js component for full screen loading indicator.

2,880,068 1,261
@gits-id/spinner

GITS Spinner Component

3,231
loading-dev-vue

Beautiful loading indicators for Vue 3.

327 0
vue3-loading-overlay

Vue.js component for full screen loading indicator, compatible for vue3.

156,113 13

Version History

Version Released License
1.2.1 MIT
1.2.0 MIT
1.1.5 MIT
1.0.5 MIT
1.0.4 MIT