×
Namespaces

Variants
Actions

DrY Busy component

From Nokia Developer Wiki
Jump to: navigation, search
Article Metadata
Code Example
Source file: Media:DrY Busy.zip
Article
Created: symbianyucca (16 May 2010)
Last edited: hamishwillee (05 Jul 2012)
DrY Accordion component is based on the Guarana busy components implementation. Basically it is supposed to be used as a busy/waiting note when UI interaction should be disabled during some processing.

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

WRT example at Wiki: DrY Busy.zip
Go to DrY Index

This page was last modified on 5 July 2012, at 06:47.
40 page views in the last 30 days.

Was this page helpful?

Your feedback about this content is important. Let us know what you think.

 

Thank you!

We appreciate your feedback.

×