# Loading
A simple loading overlay
# Examples
# Base
# Slot
# Programmatically
# Programmatically (with promise)
# Class props
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Fusce id fermentum quam. Proin sagittis, nibh id hendrerit imperdiet, elit sapien laoreet elit
# Props
| Prop name | Description | Type | Values | Default |
|---|---|---|---|---|
| active | Whether modal is active or not, use the .sync modifier (Vue 2.x) or v-model:active (Vue 3.x) 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) |
| overlay | boolean | - | true | |
| override | Override classes | boolean | - | false |
# Events
| Event name | Properties | Description |
|---|---|---|
| close | ||
| update:active | ||
| 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 |
← Inputitems Menu →