new module:ct-grid /Grid Scroll Pane(grid View, dimensions, scroll Bar Ctor)
All scrolling behaviour in GridView is handled by this class. Header tracking should be done by adding the GridHeader element as an additional element.
Parameters:
Name | Type | Description |
---|---|---|
gridView |
module:ct-grid |
the grid view |
dimensions |
Map | Map of scrolling widths & heights |
scrollBarCtor |
function | ScrollBar constructor. If omitted native ScrollBar will be used. |
Methods
disable Scrolling()
Disables scrolling by ignoring scroll events and hiding scrollbars
enable Scrolling()
Enables scrolling if it was previously disabled
get Number OfDisplayed Rows() → {int}
Returns the number of displayed rows.
Returns:
the number of displated rows within the scroll pane.
- Type
- int
get Row Element(row Index) → {DOMElement}
Returns the row element at the specified index.
Parameters:
Name | Type | Description |
---|---|---|
rowIndex |
int | the index of the row element to get. |
Returns:
the row element at the specified index.
- Type
- DOMElement
get Scroll Pane Content() → {DOMElement}
Returns the content element of the scroll pane.
Returns:
The content element.
- Type
- DOMElement