ux loading

Description

Show a loading mask to avoid the user click on any control

Parameters

boolean

Activate o DeActivate the loading mask

Return


No return value

Example


<a href="#" onclick="loading_example()">Click here</a> to display the loading mask for 5 seconds
 <script>
function loading_example() {
ux.loading(true);
setTimeout(function(){ ux.loading(false); }, 5000); }
</script>

 

Preview:

In the preview of the example you can see the result of the string:

By clicking the link in the "Click here to display the loading mask for 5 seconds" message, the app displays the loading mask for 5 seconds.