Documentation

moveSelection

moves selection in the specified direction

void moveSelection(string direction);

Parameters

directionstringthe move direction

See also

Example

$$("list").moveSelection("top");

Details

The method can take only one of a predefined set of values.
The predefined values are:

  • 'top' - the selection is moved to the first item of the dataview
  • 'bottom' - the selection is moved to the last item of the dataview
  • 'up' ('left') - the selection is moved one item left
  • 'down' ('right') - the selection is moved one item right
  • 'pgup' - the selection is moved to the first item of the previous page ( a page is the currently visible dataview)
  • 'pgdown' - the selection is moved to the first item of the next page(a page is the currently visible dataview)
Back to top