RowManager
Plugin
private
Virtual representation of the grid, using Row to represent rows. Plugs into Grid and exposes the following functions on grid itself:
let row = grid.getRowById(1);
Configs
Configs are options you supply in a configuration object when creating an instance of this class-
Number of rows to render below current viewport
-
Set to
trueto get a small performance boost in applications that uses fixed row height -
Number of rows to render above current viewport
Properties
Properties are getters/setters or publicly accessible variables on this class-
Returns
trueif all rows have a known height. They do if all rows are visited, or if RowManager is configured withfixedRowHeight. If so, all tops can be calculated exactly, no guessing needed -
Get actually used row height, which includes any border and might be an average if using variable row height.
-
Total estimated grid height (used for scroller)
-
Get the Row currently displayed furthest down.
-
Get the topmost visible Row
-
Get the last visible Row
-
Set a fixed row height (can still be overridden by renderers) or get configured row height. Setting refreshes all rows
Has a corresponding rowHeight config.
-
Get all Rows
-
Get the Row that is currently displayed at top.
Functions
Functions are methods available for calling on the class-
Invalidates all cached height and resets
averageRowHeightandtotalKnownHeight -
calculateRowCount( )private
Calculates how many rows fit in the available height (view height)
-
matchRowCount( )private
Add or remove rows to fit row count
-
refresh( )
Rerender all rows
-
returnToTop( )
Renders from the top of the grid, also resetting scroll to top. Used for example when collapsing all groups.
-
warpIfNeeded( )private
Jumps to a position if it is far enough from current position. Otherwise does nothing.