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

Method _getRenderedRows

src/cdk/table/table.ts:1324–1333  ·  view source on GitHub ↗

Gets the list of rows that have been rendered in the row outlet.

(rowOutlet: RowOutlet)

Source from the content-addressed store, hash-verified

1322
1323 /** Gets the list of rows that have been rendered in the row outlet. */
1324 _getRenderedRows(rowOutlet: RowOutlet): HTMLElement[] {
1325 const renderedRows: HTMLElement[] = [];
1326
1327 for (let i = 0; i < rowOutlet.viewContainer.length; i++) {
1328 const viewRef = rowOutlet.viewContainer.get(i)! as EmbeddedViewRef<any>;
1329 renderedRows.push(viewRef.rootNodes[0]);
1330 }
1331
1332 return renderedRows;
1333 }
1334
1335 /**
1336 * Get the matching row definitions that should be used for this row data. If there is only

Calls 2

getMethod · 0.65
pushMethod · 0.65

Tested by

no test coverage detected