Pagination

Overview

The Pagination component is a utility component that displays a list of data in a tabular format. The Pagination component divides a large amount of data into pages and displays them one by one as required. The Pagination component displays the data of a page along with a Left button, a Right button, and a label to display the number of the current page.

NOTE: The Pagination component is used inside the Mobile Banking application.

Pagination Contracts

The Pagination component contains the following contracts.

setData Method

This method is used to set the properties of the component.

Parameter Value

Syntax

this.view.<componentID>.setData(data);

Input parameter

data: JSON object containing the following key-value pairs to set the component preferences.

  • currentPageNo: Sets the current page number in an Integer format.
  • maxPageNo: Sets the maximum number of pages in an Integer format.
  • leftClickCallBack: Sets the callback function invoked when the Left button clicks.
  • rightClickCallBack: Sets the callback function invoked when the Right button clicks.

Sample Input 

var data = {
	currentPageNo: 2,
	maxPageNo: 5,
	leftClickCallBack: this.parentFunc1,
	rightClickCallBack: this.parentFun2
};
this.view.pagination.setData(data);			
		

Return Type

None

leftClickCallback Event

This callback is triggered when the user clicks the left button. When this event is triggered, the component executes the function set in the setData method.

Parameter Value
Input parameter

currentPageNo: The current page number in an Integer format.

Programmatic Name leftClickCallback

Sample Code

this.leftClickCallback(currentPageNo); 

Return Type

NA

rightClickCallback Event

This callback is triggered when the user clicks the right button. When this event is triggered, the component executes the function set in the setData method.

Parameter Value
Input parameter

currentPageNo: The current page number in an Integer format.

Programmatic Name rightClickCallback

Sample Code

this.rightClickCallback(currentPageNo); 

Return Type

NA

 

Copyright © 2020- Temenos Headquarters SA

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

Feedback
x