MCPcopy Create free account
hub / github.com/angular/components / getCellTextByColumnName

Function getCellTextByColumnName

src/material/table/testing/row-harness.ts:49–59  ·  view source on GitHub ↗

Gets the text inside the row organized by columns.

()

Source from the content-addressed store, hash-verified

47
48 /** Gets the text inside the row organized by columns. */
49 async getCellTextByColumnName(): Promise<MatRowHarnessColumnsText> {
50 const output: MatRowHarnessColumnsText = {};
51 const cells = await this.getCells();
52 const cellsData = await parallel(() =>
53 cells.map(cell => {
54 return parallel(() => [cell.getColumnName(), cell.getText()]);
55 }),
56 );
57 cellsData.forEach(([columnName, text]) => (output[columnName] = text));
58 return output;
59 }
60}
61
62/** Harness for interacting with an Angular Material table row. */

Callers

nothing calls this directly

Calls 3

parallelFunction · 0.90
getCellsMethod · 0.45
getTextMethod · 0.45

Tested by

no test coverage detected