# Default
Documentation Vuesax 4.0+
These documents refer to the latest version of vuesax (4.0+), to see the documents of the previous versions you can do it here 👉 Vuesax 3.x
Generate a loading with the vuesax function $vs.loading(options)
Documentation Vuesax 4.0+
These documents refer to the latest version of vuesax (4.0+), to see the documents of the previous versions you can do it here 👉 Vuesax 3.x
Generate a loading with the vuesax function $vs.loading(options)
Change the type of loading with the option type
Tipos de loading:
Click on the example loading to open it in the whole page
Change the color of the loading animation with the property color
, the colors can be the main ones of vuesax or (RGB, HEX)
Add a descriptive text of the loading or informing the user that it is loading or that it is missing to load with the property text
You can add a string of the percentage of load with the percent
property, if you need to change that value use the changePercent
function in the loading instance.
Add a progress bar at the top to indicate the loading progress of the loading with the progress
property, the value is a number that determines the percentage and the allowed value is (0 - 100)
Use the loading on a specific dom element using the target
property and the value can be a string with the id
or the class
only if it is unique for the element, you can also use the element itself as per example using $refs
Property | Type | Values | Description | default | Example | More |
---|---|---|---|---|---|---|
type | String | waves corners border points square gradient rectangle circles square-rotate scale | Change the animation of the loading. | default | Usage Open Close | |
| ||||||
color | String | All colors of vuesax (RGB y HEX) | Change the color of the loading animation. | primary | Usage Open Close | |
| ||||||
background | String | All colors of vuesax (RGB y HEX) | Change the background color of the loading. | #fff | Usage Open Close | |
| ||||||
text | String | String | Add a text below the loading animation. | Usage Open Close | ||
| ||||||
percent | String | (0% - 100%) | Add a percentage text inside the loading. | Usage Open Close | ||
| ||||||
progress | String || Number | (0 - 100) | Add a progress bar to the loading and the progress would be the value. | Usage Open Close | ||
| ||||||
target | String || html || ref | String || html || ref | Determine the parent of the loading where it will be instantiated. | Usage Open Close | ||
| ||||||
opacity | String || Number | (0 - 1) | Change the opacity of the background. | 0.6 | Usage Open Close | |
| ||||||
scale | String || Number | (0 - 1) | Change the size of the loading animation. | 1 | Usage Open Close | |
| ||||||
changePercent() | function | String | Change the value of the percent after instantiating the loading. | Usage Open Close | ||
| ||||||
changeProgress() | function | String | Change the value of the progress after instantiating the loading. | Usage Open Close | ||
| ||||||
changeText() | function | String | Change the value of the text property after instantiating the loading. |