PageRenderTime 42ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/documentation/af.ui/$.ui.blockUI.md

https://github.com/maoyao/appframework
Markdown | 54 lines | 33 code | 21 blank | 0 comment | 0 complexity | 15281e0042a51690145cf662a1d9b54d MD5 | raw file
  1. #$.ui.blockUI(opacity)
  2. ```
  3. This will throw up a mask and block the UI
  4. ```
  5. ##Example
  6. ```
  7. $.ui.blockUI(.9)
  8. ```
  9. `
  10. ##Parameters
  11. ```
  12. opacity Float
  13. ```
  14. ##Returns
  15. ```
  16. undefined
  17. ```
  18. ##Detail
  19. $.ui.blockUI is a shortcut to $.blockUI from the popup plugin.
  20. This function throws up a mask on the screen and is used with plugins like the popup plugin.
  21. ```
  22. $.ui.blockUI(0.9)
  23. ```
  24. Let's try it below. We will hide it after 3 seconds.
  25. <script>
  26. function blockUI(){
  27. $.ui.blockUI(0.3);
  28. setTimeout(function(){
  29. $.ui.unblockUI()
  30. },3000);
  31. }
  32. </script>
  33. <input type="button" value="Block UI" onclick="blockUI()">