Promise
를 반환하며 resolve()가 되면 자동으로 닫힙니다.
<body>
Hello Popman<br/>
<button onclick="loadSomething();">LOAD</button>
</body>
<script>
popman.setup({modeTest:true, loadingExpx:'150', loadingExpy:'150'});
function loadSomething(){
var promise = popman.loading('LOADING', function(resolve, reject){
setTimeout(function(){
resolve();
}, 2000);
});
}
loadSomething();
</script>