Skip to content

Commit a850efd

Browse files
committed
Loader wrapper class available as component property
1 parent ef83025 commit a850efd

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ npm install vue-full-loading --save
2525
| `label` | String | <b>Default 'Loading...' |
2626
| `show` | Boolean | <b>Default false</b> <br>Options: true or false. |
2727
| `overlay` | Boolean | <b>Default true</b> <br>Options: true or false. |
28+
| `loader-class` | String | <b>Default 'loader-wrapper' |
2829
| `event-bus` | Object | <b>Default null</b> <br>Central event Bus |
2930
| `event-show` | String | <b>Default 'show-full-loading'|
3031
| `event-hide` | String | <b>Default 'hide-full-loading'|

src/Loading.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
>
66
<div v-if="showing" :class="{'white-overlay': overlay}">
77
<slot name="loading-container">
8-
<div class="loader-wrapper">
8+
<div :class="loaderClass">
99
<slot name="loading-text">
1010
<div class="pulled-left" v-html="label"></div>
1111
</slot>
@@ -80,6 +80,9 @@
8080
overlay: {
8181
default: true
8282
},
83+
loaderClass: {
84+
default: 'loader-wrapper'
85+
},
8386
// central event bus
8487
eventBus: {
8588
default: null

0 commit comments

Comments
 (0)