MCPcopy Create free account
hub / github.com/bvaughn/react-virtualized / Example

Function Example

src/routes/table/examples/TableBasic.tsx:13–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

11// const list = [{ name: "Brian Vaughn", random: "Software engineer" }, ...];
12
13function Example() {
14 return (
15 <AutoSizer
16 renderProp={({ width }) =>
17 width !== undefined ? (
18 <Table
19 headerHeight={30}
20 height={250}
21 rowCount={list.length}
22 rowGetter={({ index }) => list[index]}
23 rowHeight={30}
24 width={width}
25 >
26 <Column dataKey="name" label="Name" width={150} />
27 <Column
28 dataKey="random"
29 flexGrow={1}
30 label="Description"
31 width={200}
32 />
33 </Table>
34 ) : null
35 }
36 />
37 );
38}
39
40// <end>
41

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected