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

this.view.<componentID>.setValue(val);

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

this.view.<componentID>.getValue();

Input parameter

NA

Sample Input 

var percentage = this.view.progressbar.getValue();

Return Type

percentage: The percentage of the progress done. This parameter can have values ranging from 0 to 100.

 

Copyright © 2020- Temenos Headquarters SA

Published on :
Monday, May 2, 2022 5:08:58 PM IST

Feedback
x