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

Function extractCellTemplate

src/cdk/table/row.ts:70–79  ·  view source on GitHub ↗

Gets this row def's relevant cell template from the provided column def.

(column: CdkColumnDef)

Source from the content-addressed store, hash-verified

68
69 /** Gets this row def's relevant cell template from the provided column def. */
70 extractCellTemplate(column: CdkColumnDef): TemplateRef<any> {
71 if (this instanceof CdkHeaderRowDef) {
72 return column.headerCell.template;
73 }
74 if (this instanceof CdkFooterRowDef) {
75 return column.footerCell.template;
76 } else {
77 return column.cell.template;
78 }
79 }
80}
81
82/**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected