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

Method getCells

packages/@react-aria/test-utils/src/table.ts:585–588  ·  view source on GitHub ↗

* Returns the cells within the table if any. Can be filtered against a specific row if provided * via `element`.

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

Source from the content-addressed store, hash-verified

583 * via `element`.
584 */
585 getCells(opts: {element?: HTMLElement} = {}): HTMLElement[] {
586 let {element = this.getTable()} = opts;
587 return within(element).queryAllByRole('gridcell');
588 }
589}

Callers

nothing calls this directly

Calls 1

getTableMethod · 0.95

Tested by

no test coverage detected