Loading
A simple loading overlay
Base
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien laoreet elit
Show code
Slot
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien laoreet elit
Show code
Programmatically
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien laoreet elit
Show code
Class props
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien laoreet elit
Click on "Inspect" button to open the loadingClass prop | Description | Props | Suffixes | |
---|---|---|---|---|
fullPageClass | Class for the root element when fullpage. | fullPage | ||
iconClass | Class for the loading icon. | |||
overlayClass | Class of the loading overlay. | |||
rootClass | Class of the root element. |
Props
Prop name | Description | Type | Values | Default |
---|---|---|---|---|
active | Whether loading is active or not, use v-model:active to make it two-way binding | boolean | - | |
animation | string | - | From config loading: { | |
canCancel | Can close Loading by pressing escape or clicking outside | boolean | - | false |
container | object|func|HTMLElement | - | ||
fullPage | Loader will overlay the full page | boolean | - | true |
icon | Icon name | string | - | From config loading: { |
iconSize | string | - | 'medium' | |
iconSpin | Enable spin effect on icon | boolean | - | true |
onCancel | Callback function to call after user canceled (pressed escape / clicked outside) | func | - | Default function (see source code) |
override | boolean | - | ||
programmatic | object | - | ||
promise | Promise | - |
Events
Event name | Properties | Description |
---|---|---|
update:active | ||
close | ||
update:full-page |
Slots
Name | Description | Bindings |
---|---|---|
default |
Style
CSS Variable | SASS Variable | Default |
---|---|---|
--oruga-loading-overlay-legacy | $loading-overlay-legacy | #7f7f7f |
--oruga-loading-overlay | $loading-overlay | rgba(255,255,255,0.5) |
--oruga-loading-zindex | $loading-zindex | 29 |
--oruga-loading-fullpage-zindex | $loading-fullpage-zindex | 999 |