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

Method constructor

src/cdk/table/cell.ts:203–213  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

201})
202export class CdkFooterCell extends BaseCdkCell {
203 constructor() {
204 const columnDef = inject(CdkColumnDef);
205 const elementRef = inject(ElementRef);
206
207 super(columnDef, elementRef);
208
209 const role = columnDef._table?._getCellRole();
210 if (role) {
211 elementRef.nativeElement.setAttribute('role', role);
212 }
213 }
214}
215
216/** Cell template container that adds the right classes and role. */

Callers

nothing calls this directly

Calls 1

_getCellRoleMethod · 0.80

Tested by

no test coverage detected