You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/Collection.md
+26-13Lines changed: 26 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,7 @@ Unlike `Grid`, which renders checkerboard data, `Collection` can render arbitrar
13
13
| className | String || Optional custom CSS class name to attach to root Collection element. |
14
14
| cellCount | Number | ✓ | Number of cells in collection. |
15
15
| cellGroupRenderer | Function | ✓ | Responsible for rendering a group of cells given their indices.: `({ cellSizeAndPositionGetter:Function, indices: Array<number>, cellRenderer: Function }): Array<PropTypes.node>`|
16
-
| cellRenderer | Function | ✓ | Responsible for rendering a cell given an row and column index: `({ index: number, isScrolling: boolean }): PropTypes.element`|
16
+
| cellRenderer | Function | ✓ | Responsible for rendering a cell given an row and column index: `({ index: number, isScrolling: boolean, key: string, style: object }): PropTypes.element`|
17
17
| cellSizeAndPositionGetter | Function | ✓ | Callback responsible for returning size and offset/position information for a given cell (index): `({ index: number }): { height: number, width: number, x: number, y: number }`|
18
18
| height | Number | ✓ | Height of Collection; this property determines the number of visible (vs virtualized) rows. |
19
19
| horizontalOverscanSize | Number || Enables the `Collection` to horiontally "overscan" its content similar to how `Grid` does. This can reduce flicker around the edges when a user scrolls quickly. This property defaults to `0`; |
@@ -46,14 +46,13 @@ The Collection component supports the following static class names
46
46
|:---|:---|
47
47
| ReactVirtualized__Collection | Main (outer) element |
48
48
| ReactVirtualized__Collection__innerScrollContainer | Inner scrollable area |
0 commit comments