0.0.1 • Published 9 months ago

@daracl/loading v0.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

Loading

Simple loading message

License: MIT npm version npm minzipped size

Browser Support

ChromeFirefoxSafariOperaEdgeInternet Explorer
Latest ✔Latest ✔Latest ✔Latest ✔Latest ✔ie 11 >

build

npm run build

사용방법

 
Daracl.loading.create("selector", {})

Daracl.loading.create("selector", { "content": "content" })

Daracl.loading.create("selector", { "content": "content", timeout: 2000 });

Daracl.loading.create("selector", {
"enableCancelButton": true, callback: function () {
    console.log('1111111')
}
})

Daracl.loading.create("#sample5", { "enableCancelButton": true, enableTime: true })
 

loading 옵션

key설명기본값옵션값
timeout자동으로 사라지는 Milliseconds-1
enableTime초 보일지 여부false
content보여질 컨텐츠""
bgColor백그라운드 컬러"#ffffff"
zIndexz-index9999998
opacityopacity"0.3"
loadingImg이미지 경로 및 base64 코드""
cursorcss cursor"wait"
enableCancelButton취소 버튼 활성화 여부false
callback취소 벼튼 활성화시 callback 메소드undefined