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

Method constructor

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

Source from the content-addressed store, hash-verified

222})
223export class CdkCell extends BaseCdkCell {
224 constructor() {
225 const columnDef = inject(CdkColumnDef);
226 const elementRef = inject(ElementRef);
227
228 super(columnDef, elementRef);
229
230 const role = columnDef._table?._getCellRole();
231 if (role) {
232 elementRef.nativeElement.setAttribute('role', role);
233 }
234 }
235}

Callers

nothing calls this directly

Calls 1

_getCellRoleMethod · 0.80

Tested by

no test coverage detected