Progress Bar
Overview
The Progress Bar component displays the percentage completion of any ongoing processes. A developer can set the width of the Progress Bar by sending the value to the component. The Progress Bar component then animates and displays the progress bar from zero to the value set by the developer.
NOTE: The Progress Bar Component is used inside the Mobile Banking application.
Progress Bar Contracts
The Progress Bar component contains the following contracts.
setValue Method
This method sets the width of the progress bar. The bar animates from 0 to the value set using this method
| Parameter | Value |
|---|---|
|
Syntax |
|
| Input parameter | val: The data input to set the width of the progress bar. |
|
Sample Input |
var val = 50; //To set the Progress Bar to 50 percentage. this.view.progressbar.setValue(val); var val = 75.5; //To set the Progress Bar to 75.5 percentage. this.view.progressbar.setValue(val); |
|
Return Type |
None |
getValue Method
This method returns the percentage of progress done as a Float value.
| Parameter | Value |
|---|---|
|
Syntax |
|
| Input parameter |
NA |
|
Sample Input |
var percentage = this.view.progressbar.getValue(); |
|
Return Type |
|
In this topic