(Difference between revisions)

DrY ProgressBar

From Nokia Developer Wiki
Jump to: navigation, search
hamishwillee (Talk | contribs)
m (Hamishwillee - Bot addition of Template:ArticleMetaData)
hamishwillee (Talk | contribs)
m (Hamishwillee - Fix categories)
Line 1: Line 1:
[[Category:Symbian Web Runtime]][[Category:UI]]
|sourcecode=[[Media:DrY ProgressBar.zip]]  
|sourcecode=[[Media:DrY ProgressBar.zip]]  
Line 53: Line 54:
[[DrY Article Index|Go to DrY Index]]
[[DrY Article Index|Go to DrY Index]]
[[Category:Symbian Web Runtime]]

Revision as of 06:47, 5 July 2012

Article Metadata
Code ExampleArticle
Created: symbianyucca (16 May 2010)
Last edited: hamishwillee (05 Jul 2012)
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:

var progress1 = new dry.ProgressBar({
value: 20,
completed: progressCompleted,
styleTweaker: styleTweaker},

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


Component browser at dev.DrJukka.com/DrY/

WRT example at Wiki: DrY ProgressBar.zip

Go to DrY Index

51 page views in the last 30 days.