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()
For the examples, the request or the delay is simulated with setTimeout
You can change the type of animation with the type property and the animations so far are:
\n\nYou can change the color of the loading with the property color
If you need to change the background of the loading, you can use the property background
To add a loading within a container, call the $vs.loading()
global function passing the container
and the scale
parameters. When you want to remove it we have $vs.loading.close()
, passing the same container
parameter
For the examples, the request or the delay is simulated with setTimeout