MCPcopy Index your code
hub / github.com/adobe/react-spectrum / getCells

Method getCells

packages/@react-aria/test-utils/src/tree.ts:286–289  ·  view source on GitHub ↗

* Returns the tree's cells if any. Can be filtered against a specific row if provided via * `element`.

(opts: {element?: HTMLElement} = {})

Source from the content-addressed store, hash-verified

284 * `element`.
285 */
286 getCells(opts: {element?: HTMLElement} = {}): HTMLElement[] {
287 let {element = this.getTree()} = opts;
288 return within(element).queryAllByRole('gridcell');
289 }
290}

Callers 4

Treeble.test.jsFile · 0.45
Table.test.jsFile · 0.45
ListView.test.jsFile · 0.45
TreeView.test.tsxFile · 0.45

Calls 1

getTreeMethod · 0.95

Tested by

no test coverage detected