0.1.22 • Published 2 years ago

vue3-smart-loader v0.1.22

Weekly downloads
-
License
-
Repository
github
Last release
2 years ago

vue3-smart-loader

Importantly Note

This is a newly developed package. So the stable version is not available for now.

For Preview Spinners

=> Epic Spinners Package

Usages

Import in main.js

import SmartLoader from "vue3-smart-loader" and require('vue3-smart-loader/dist/main.css')

Include with use method

createApp(App).use(SmartLoader).mount("#app");

And Use With this.$spinner

  • this.$spinner.flower()
  • this.$spinner.pixel()
  • this.$spinner.hollowDots()
  • this.$spinner.intersectingCircles()
  • this.$spinner.orbit()
  • this.$spinner.radar()
  • this.$spinner.scalingSquares()
  • this.$spinner.halfCircle()
  • this.$spinner.trinityRings()
  • this.$spinner.fulfillingSquare()
  • this.$spinner.circlesToRhombuses()
  • this.$spinner.semipolar()
  • this.$spinner.selfBuildingSquare()
  • this.$spinner.swappingSquares()
  • this.$spinner.fulfillingBouncingCircle()
  • this.$spinner.fingerprint()
  • this.$spinner.spring()
  • this.$spinner.atom()
  • this.$spinner.loopingRhombuses()
  • this.$spinner.breedingRhombus()

Parameters

Parameter NameTypeDescription
durationIntegeris the speed of the animation, all spinners have their own default speed defined. If desired, this parameter can be changed by giving it.
sizeIntegeris the size of the icon. All spinners have their own default sizes defined. If desired, this parameter can be changed by giving it.
colorStringis the color of the icon. All spinners have their own default colors defined. If desired, this parameter can be changed by giving it.
numIntegernumber of pieces for circlesToRhombulus and hollowDots
stopAfterIntegerIndicates how many seconds after the spinner will timeout and the warning menu will be displayed.
stopAfterTextStringWe can change the text in the warning menu with this parameter.

Parameters this.$spinner.flower(

    {

        duration:1000, 
        size:70, 
        color:”#f0f0f0”, 
        num:3, 
        stopAfter:30, 
        stopAfterText:”This Process Too Long”

    }

)

Customize Smart Menu

You should be add main.js

`

Object.assign(SmartLoader, {

    config: {

        ui:"bootstrap5",

        smartMenu: {
            visibility:true,
            stopAfter:3,

            texts:{
                title:{
                    text:"Galatasaray",
                    class:"h2 text-primary text-center"
                },
                description:{
                    text:"bu bir takımdır",
                    class:"text-center h6"
                },
                second:{
                    text:"Saniye",
                    class:"text-center"
                }
            },

            buttons:[
                
                {
                    label: "Just Turn Off Spinner",
                    class: "btn btn-dark m-2",
                    type: "turn-off",
                },
                {
                    label: "Page Reload",
                    class: "btn btn-secondary",
                    type: "page-reload",
                },
                
                {
                    label: "Hang on!",
                    class: "btn btn-info",
                    type: "hang-on",
                    action: ""
                }
            ] 
        }
    }

}) `

Close Spinner

  • this.$spinner.close()

Close Spinner With delay parameter

  • this.$spinner.close(2000)
0.1.22

2 years ago

0.1.21

2 years ago

0.1.20

2 years ago

0.1.19

2 years ago

0.1.18

2 years ago

0.1.17

2 years ago

0.1.16

2 years ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.11

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago