DrY Busy component
Article Metadata
Code Example
Source file: Media:DrY Busy.zip
Article
Created: symbianyucca
(16 May 2010)
Last edited: hamishwillee
(05 Jul 2012)
Following code snipped shows how to show busy note for 5 seconds
dojo.require("dry.Busy");
var busy = new dry.Busy({
autoOpen: true,
hidden: dialogHidden,
destroyed: dialogDestroyed,
backgroundColor: "green",
opacity: 0.38,
styleTweaker: styleTweaker
}, 'BusyDiv1');
var deleteLoader = function(){
busy1.destroy();
busy1 = null;
}
setTimeout(deleteLoader,5000);
The constructor of the busy components takes two argument, the second on eis the name of the div where the note is to be added in. And the first on eis struct defining values fort he note:
- autoOpen: true/false, defines whether the note is opened when it is constructed,
- hidden: call back called when the note is hidden,
- destroyed: call back called when the note is deleted,
- backgroundColor: color name for the note’s background,
- opacity: opacity value fort he background,
- styleTweaker: style tweaker used fort he component
- buttons: Additional Dry button array for the note
Examples
- Component browser at [http://dev.drjukka.com/DrY/ de.DrJukka.com/DrY/
WRT example at Wiki: DrY Busy.zip
Go to DrY Index


(no comments yet)