MCPcopy Create free account
hub / github.com/bvaughn/react-window / onClick

Function onClick

src/routes/grid/examples/gridRefClickEventHandler.ts:8–17  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6// <begin>
7
8const onClick = () => {
9 const grid = gridRef.current;
10 grid?.scrollToCell({
11 behavior: "auto", // optional
12 columnAlign: "auto", // optional
13 columnIndex: 10,
14 rowAlign: "auto", // optional
15 rowIndex: 250
16 });
17};
18
19// <end>
20

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected