Loading

Very simple to implement and remove.

Default

To add a loading in any part of your application we have the global function $ vs.loading (), and then when you want to remove it we have $ vs.loading.close ().

TIP

For the examples, the request or the delay is simulated with setTimeout.

Color

You can change the color of the loading with the property vs-color.

WARNING

Only RGB and HEX colors are supported.

Background

If you need to change the background of the loading, you can use the property vs-background

WARNING

Only RGB and HEX colors are supported.

API #

NameTypeParametersDescriptiondefault
$vs.loading()FunctionObjectfunction to open loading.
$vs.loading.close()Functionfunction to close loading.
colorStringRGB, HEX, primary, danger, success, dark, warningColor of loading.
backgroundStringRGB, HEX, primary, danger, success, dark, warningloading background.rgba(255, 255, 255,.8)