×
Namespaces

Variants
Actions
(Difference between revisions)

DrY ProgressBar

From Nokia Developer Wiki
Jump to: navigation, search
jimgilmour1 (Talk | contribs)
m (Examples)
jimgilmour1 (Talk | contribs)
m (minor spelling)
Line 1: Line 1:
DrY ProgressBar component is based on Guarana ProgressBar implementation, and basically it implements same functionality as the guarana ProgressBar does.
+
DrY ProgressBar component is based on Guarana ProgressBar implementation, and basically it implements same functionality as the Guarana ProgressBar does.
  
 
Following code snipped shows how it can be used:
 
Following code snipped shows how it can be used:
Line 20: Line 20:
 
* maxvalue: max value fort he progress,
 
* maxvalue: max value fort he progress,
 
* label: label shown with progress bar
 
* label: label shown with progress bar
* changed: callback called when progres value has changed,
+
* changed: callback called when progress value has changed,
 
* completed: callback called when progress is completed,
 
* completed: callback called when progress is completed,
 
* styleTweaker: styleTweaker for handling the themes.
 
* styleTweaker: styleTweaker for handling the themes.

Revision as of 14:14, 20 May 2010

DrY ProgressBar component is based on Guarana ProgressBar implementation, and basically it implements same functionality as the Guarana ProgressBar does.

Following code snipped shows how it can be used:

dojo.require("dry.ProgressBar");
 
var progress1 = new dry.ProgressBar({
value: 20,
maxvalue:138,
changed:valueChanged,
completed: progressCompleted,
label:"Reading",
styleTweaker: styleTweaker},
'controlDiv1');

The constructor takes 2 items, where the second one is the name for the div where the ProgressBar is placed in. The first argument is a struct defining the ProgressBar properties and callback functions:

  • value: initial value set fort he progress,
  • maxvalue: max value fort he progress,
  • label: label shown with progress bar
  • changed: callback called when progress value has changed,
  • completed: callback called when progress is completed,
  • styleTweaker: styleTweaker for handling the themes.

setValue and getValue functions can be used for querying and setting the progress values

Examples

Component browser at dev.DrJukka.com/DrY/

WRT example at Wiki: DrY_ProgressBar.zip

Go to DrY Index

75 page views in the last 30 days.
×