Created
March 19, 2012 03:16
-
-
Save caingougou/2092687 to your computer and use it in GitHub Desktop.
qooxddo blocker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var input = new qx.ui.form.Button("Test button", "qooxdoo/test.png"); | |
| var blocker = new qx.bom.Blocker(); | |
| blocker.setBlockerOpacity(0.5); | |
| blocker.setBlockerColor("gray"); | |
| input.addListener("click", function(e){ | |
| blocker.block(); | |
| qx.event.Timer.once(function(e){ | |
| blocker.unblock(); | |
| }, window, 5000); | |
| }); | |
| doc.add(input, {left:400, top:50}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment