JavaScript

A5.ListBoxnavigate Method

Syntax

A5.ListBox.navigate(direction[,executeSelect])

Arguments

directionstring

The direction to navigate. The value can be "prev", "next", 'home" or "first", "end" or "last", "page-prev" and "page-next".

executeSelectboolean

Whether or not to execute the select events. The change event will always be executed when the value changes.

Description

Navigate the list selection.

Discussion

The list selection can be navigated by this method, in a similar fashion to keyboard navigation. The navigation directions of "page-prev" and "page-next" can be used when the view is dynamically paging data to move between pages of data.

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
lObj.navigate('last'); // navigate to the last row in the list

See Also