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

Method _getCellTemplates

src/cdk/table/table.ts:1429–1442  ·  view source on GitHub ↗

Gets the column definitions for the provided row def.

(rowDef: BaseRowDef)

Source from the content-addressed store, hash-verified

1427
1428 /** Gets the column definitions for the provided row def. */
1429 private _getCellTemplates(rowDef: BaseRowDef): TemplateRef<any>[] {
1430 if (!rowDef || !rowDef.columns) {
1431 return [];
1432 }
1433 return Array.from(rowDef.columns, columnId => {
1434 const column = this._columnDefsByName.get(columnId);
1435
1436 if (!column) {
1437 throw getTableUnknownColumnError(columnId);
1438 }
1439
1440 return rowDef.extractCellTemplate(column);
1441 });
1442 }
1443
1444 /**
1445 * Forces a re-render of the data rows. Should be called in cases where there has been an input

Callers 1

Calls 2

getMethod · 0.65

Tested by

no test coverage detected