Please note that as of October 24, 2014, the Nokia Developer Wiki will no longer be accepting user contributions, including new entries, edits and comments, as we begin transitioning to our new home, in the Windows Phone Development Wiki. We plan to move over the majority of the existing entries. Thanks for all your past and future contributions.

Revision as of 03:47, 5 July 2012 by hamishwillee (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

DrY Busy component

From Wiki
Jump to: navigation, search
Article Metadata
Code Example
Source file: Media:DrY
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

var busy = new dry.Busy({
autoOpen: true,
hidden: dialogHidden,
destroyed: dialogDestroyed,
backgroundColor: "green",
opacity: 0.38,
styleTweaker: styleTweaker
}, 'BusyDiv1');
var deleteLoader = function(){
busy1 = null;

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


WRT example at Wiki: DrY
Go to DrY Index

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