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

Method getRows

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

Source from the content-addressed store, hash-verified

160 }
161
162 private getRows(): GridNode<T>[] {
163 let rows: GridNode<T>[] = [];
164 for (let child of this) {
165 if (child.type === 'tablebody' || child.type === 'tablefooter') {
166 rows.push(...this.getChildren(child.key));
167 }
168 }
169 return rows;
170 }
171
172 // backward compatibility
173 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