×
Namespaces

Variants
Actions
(Difference between revisions)

DrY ProgressBar

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Automated change of category from Web Runtime (WRT) to Symbian Web Runtime)
hamishwillee (Talk | contribs)
m (Bot change of links to internal format.)
Line 31: Line 31:
 
Component browser at [http://dev.drjukka.com/DrY/ dev.DrJukka.com/DrY/]
 
Component browser at [http://dev.drjukka.com/DrY/ dev.DrJukka.com/DrY/]
  
WRT example at Wiki: [http://wiki.forum.nokia.com/index.php/File:DrY_ProgressBar.zip DrY_ProgressBar.zip]
+
WRT example at Wiki: [[:File:DrY ProgressBar.zip|DrY ProgressBar.zip]]
  
[http://wiki.forum.nokia.com/index.php/DrY_Article_Index Go to DrY Index]
+
[[DrY Article Index|Go to DrY Index]]
  
  
 
[[Category:Symbian Web Runtime]]
 
[[Category:Symbian Web Runtime]]

Revision as of 01:23, 19 May 2011

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

48 page views in the last 30 days.