JavaScript

A5.ListBoxindexVisible Method

Syntax

A5.ListBox.indexVisible()

Returns

indexesobject

The start and end indexes.

startnumber

The first visible render index.

endnumber

The last visible render index.

Description

Get the first and last indexes currently visible in the list.

Example

// To get a pointer to the A5.ListBox class see {dialog.object}.getControl
// assume lObj is a pointer to an instance of the A5.ListBox class
var indx = lObj.indexVisible(); // "indx" will equal an object with a "start" and "end" indexes

Example: Displaying the Range of Visible Rows in a List Control 

In this example, the visible row information is retrieved from a List Control in a UX Component. An alert is then shown, displaying the range of rows visible on the screen.

var listObj = {dialog.object}.getControl('list1');
var obj = listObj.indexVisible();
alert(obj.start + ' to ' + obj.end);

See Also