www.webOShelp.net

Get the latest on:webOS Developers' RSS FeedwebOS Facebook page webOS Twitter Feed

ProgressBar

 

Example usage:

In the scene's view file:

<div x-mojo-element="ProgressBar" class="loadProgressBar" name="loadProgressBar"></div>

In the scene assistant:

this.lgProgressBarModel = {
  progress: 0;
}
this.controller.setupWidget ('loadProgressBar',this.lgProgressBarModel);

To update the progress bar:

if (this.progressCounter > 1) {
  this.completeProgress();
}
else {
  this.lgProgressBarModel.progress = this.lgProgressBarModel.progress + 0.2;
  this.controller.modelChanged(this.lgProgressBarModel);
}
 

webOS UI Widget List