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

Method _getRenderedRows

src/cdk/table/table.ts:1306–1315  ·  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

1304
1305 /** Gets the list of rows that have been rendered in the row outlet. */
1306 _getRenderedRows(rowOutlet: RowOutlet): HTMLElement[] {
1307 const renderedRows: HTMLElement[] = [];
1308
1309 for (let i = 0; i < rowOutlet.viewContainer.length; i++) {
1310 const viewRef = rowOutlet.viewContainer.get(i)! as EmbeddedViewRef<any>;
1311 renderedRows.push(viewRef.rootNodes[0]);
1312 }
1313
1314 return renderedRows;
1315 }
1316
1317 /**
1318 * 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