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

Function getRenderedRows

lib/scrollElement.test.tsx:41–46  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

39}
40
41function getRenderedRows() {
42 return screen
43 .queryAllByRole("listitem")
44 .map((item) => item.textContent?.replace("Row ", ""))
45 .map(Number);
46}
47
48function getRenderedCells() {
49 return screen.queryAllByRole("gridcell").map((item) => item.textContent);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected