Class
caplin.grid

GridScrollPane

All scrolling behaviour in GridView is handled by this class. Header tracking should be done by adding the GridHeader element as an additional element.

Constructor Summary

Attributes Name and Description
caplin.grid.GridScrollPane(caplin.grid.GridView gridView, Map dimensions, function scrollBarCtor)

Method Summary

Attributes Name and Description
int getNumberOfDisplayedRows()

Returns the number of displayed rows.

DOMElement getRowElement(int rowIndex)

Returns the row element at the specified index.

DOMElement getScrollPaneContent()

Returns the content element of the scroll pane.

Constructor Detail

caplin.grid.GridScrollPane(caplin.grid.GridView gridView, Map dimensions, function scrollBarCtor)

Parameters
caplin.grid.GridView gridView the grid view
Map dimensions Map of scrolling widths & heights
function scrollBarCtor ScrollBar constructor. If omitted native ScrollBar will be used.

Method Detail

int getNumberOfDisplayedRows()

Returns the number of displayed rows.

Returns
{int} the number of displated rows within the scroll pane.

DOMElement getRowElement(int rowIndex)

Returns the row element at the specified index.

Parameters
int rowIndex the index of the row element to get.
Returns
{DOMElement} the row element at the specified index.

DOMElement getScrollPaneContent()

Returns the content element of the scroll pane.

Returns
{DOMElement} The content element.