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

Function getCells

src/cdk/table/table.spec.ts:3490–3501  ·  view source on GitHub ↗
(row: Element)

Source from the content-addressed store, hash-verified

3488}
3489
3490function getCells(row: Element): HTMLElement[] {
3491 if (!row) {
3492 return [];
3493 }
3494
3495 let cells = getElements(row, 'cdk-cell');
3496 if (!cells.length) {
3497 cells = getElements(row, 'td.cdk-cell');
3498 }
3499
3500 return cells;
3501}
3502
3503function getHeaderCells(headerRow: Element): HTMLElement[] {
3504 let cells = getElements(headerRow, 'cdk-header-cell');

Callers 2

table.spec.tsFile · 0.70
getActualTableContentFunction · 0.70

Calls 1

getElementsFunction · 0.70

Tested by

no test coverage detected