MCPcopy Index your code
hub / github.com/angular/components / _getCellTemplates

Method _getCellTemplates

src/cdk/table/table.ts:1411–1424  ·  view source on GitHub ↗

Gets the column definitions for the provided row def.

(rowDef: BaseRowDef)

Source from the content-addressed store, hash-verified

1409
1410 /** Gets the column definitions for the provided row def. */
1411 private _getCellTemplates(rowDef: BaseRowDef): TemplateRef<any>[] {
1412 if (!rowDef || !rowDef.columns) {
1413 return [];
1414 }
1415 return Array.from(rowDef.columns, columnId => {
1416 const column = this._columnDefsByName.get(columnId);
1417
1418 if (!column && (typeof ngDevMode === 'undefined' || ngDevMode)) {
1419 throw getTableUnknownColumnError(columnId);
1420 }
1421
1422 return rowDef.extractCellTemplate(column!);
1423 });
1424 }
1425
1426 /**
1427 * 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