/documentation/af.ui/$.ui.blockUI.md
Markdown | 54 lines | 33 code | 21 blank | 0 comment | 0 complexity | 15281e0042a51690145cf662a1d9b54d MD5 | raw file
- #$.ui.blockUI(opacity)
- ```
- This will throw up a mask and block the UI
-
- ```
- ##Example
- ```
- $.ui.blockUI(.9)
-
- ```
- `
- ##Parameters
- ```
- opacity Float
- ```
- ##Returns
- ```
- undefined
- ```
- ##Detail
- $.ui.blockUI is a shortcut to $.blockUI from the popup plugin.
- This function throws up a mask on the screen and is used with plugins like the popup plugin.
- ```
- $.ui.blockUI(0.9)
- ```
- Let's try it below. We will hide it after 3 seconds.
- <script>
- function blockUI(){
- $.ui.blockUI(0.3);
- setTimeout(function(){
- $.ui.unblockUI()
- },3000);
- }
- </script>
- <input type="button" value="Block UI" onclick="blockUI()">