JavaScript
A5.ViewBoxscrollToItem Method
Syntax
A5.ViewBox.scrollToItem(value)
A5.ViewBox.scrollToItem(id)
Arguments
- valueany
The value of the item in the view box to scroll to.
- idstring
The ID of the item in the view box to scroll to. Must be prefixed with a "#", for example "#button1".
Description
Scroll to an item in the view box.
Example
// To get a pointer to the A5.ViewBox class see {dialog.object}.getControl // assume vbObj is a pointer to an instance of the A5.ViewBox class vbObj.scrollToItem('a'); // scroll to the element with the value of "a"