MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getRows

Method getRows

packages/react-aria-components/src/Table.tsx:166–174  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

164 }
165
166 private getRows(): GridNode<T>[] {
167 let rows: GridNode<T>[] = [];
168 for (let child of this) {
169 if (child.type === 'tablebody' || child.type === 'tablefooter') {
170 rows.push(...this.getChildren(child.key));
171 }
172 }
173 return rows;
174 }
175
176 // backward compatibility
177 get body() {

Callers 8

commitMethod · 0.95
Tree.test.tsxFile · 0.45
GridList.test.jsFile · 0.45
Treeble.test.jsFile · 0.45
Table.test.jsFile · 0.45
AriaTreeTestsFunction · 0.45
withExpandedKeysMethod · 0.45

Calls 2

getChildrenMethod · 0.95
pushMethod · 0.80

Tested by

no test coverage detected