www.webOShelp.net

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

ProgressPill

 

Example usage:

In the scene's view file:

<div x-mojo-element="ProgressPill" class="loadProgressPill" name="loadProgressPill"></div>

In the scene assistant:

this.lgProgressPillModel = {
  progress: 0;
}
this.controller.setupWidget ('loadProgressPill',this.lgProgressPillModel);

To update the progress pill:

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

 

 

webOS UI Widget List