sync form work
This commit is contained in:
@ -14,9 +14,15 @@
|
||||
|
||||
document.querySelector('#button-popup').addEventListener('click', () => {
|
||||
const popup = ui.createPopup('title', 'content',
|
||||
{ text: 'Ok', trigger: () => true });
|
||||
document.body.appendChild(popup);
|
||||
setTimeout(() => popup.style.opacity = 1);
|
||||
{
|
||||
text: 'Loading', trigger: p => {
|
||||
p.loading = true;
|
||||
setTimeout(() => p.loading = false, 1000);
|
||||
return false;
|
||||
}
|
||||
},
|
||||
{ text: 'OK' });
|
||||
popup.show();
|
||||
});
|
||||
</script>
|
||||
<style type="text/css">
|
||||
|
Reference in New Issue
Block a user