moveSelection

moves selection in the specified direction

void moveSelection(string direction);
directionstringthe move direction

Example

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

Details

The method can take only one value from the predefined set.
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)
See also
Back to top