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

Method _renderRow

src/cdk/table/table.ts:1382–1392  ·  view source on GitHub ↗

* Creates a new row template in the outlet and fills it with the set of cell templates. * Optionally takes a context to provide to the row and cells, as well as an optional index * of where to place the new row template in the outlet.

(
    outlet: RowOutlet,
    rowDef: BaseRowDef,
    index: number,
    context: RowContext<T> = {},
  )

Source from the content-addressed store, hash-verified

1380 * of where to place the new row template in the outlet.
1381 */
1382 private _renderRow(
1383 outlet: RowOutlet,
1384 rowDef: BaseRowDef,
1385 index: number,
1386 context: RowContext<T> = {},
1387 ): EmbeddedViewRef<RowContext<T>> {
1388 // TODO(andrewseguin): enforce that one outlet was instantiated from createEmbeddedView
1389 const view = outlet.viewContainer.createEmbeddedView(rowDef.template, context, index);
1390 this._renderCellTemplateForItem(rowDef, context);
1391 return view;
1392 }
1393
1394 private _renderCellTemplateForItem(rowDef: BaseRowDef, context: RowContext<T>) {
1395 for (let cellTemplate of this._getCellTemplates(rowDef)) {

Callers 3

renderRowsMethod · 0.95

Calls 1

Tested by

no test coverage detected