({
rowCount,
rowRenderer
}: {
rowCount: number;
rowRenderer: RowRenderer;
})
| 8 | import { AutoSizer } from "react-virtualized-auto-sizer"; |
| 9 | |
| 10 | function Example({ |
| 11 | rowCount, |
| 12 | rowRenderer |
| 13 | }: { |
| 14 | rowCount: number; |
| 15 | rowRenderer: RowRenderer; |
| 16 | }) { |
| 17 | return ( |
| 18 | <AutoSizer |
| 19 | renderProp={({ width }) => |
| 20 | // Only the width is used; the list has a fixed height |
| 21 | width !== undefined ? ( |
| 22 | <List |
| 23 | height={200} |
| 24 | rowCount={rowCount} |
| 25 | rowHeight={30} |
| 26 | rowRenderer={rowRenderer} |
| 27 | width={width} |
| 28 | /> |
| 29 | ) : null |
| 30 | } |
| 31 | /> |
| 32 | ); |
| 33 | } |
| 34 | |
| 35 | // <end> |
| 36 |
nothing calls this directly
no outgoing calls
no test coverage detected