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

Function getActiveCellId

src/aria/grid/grid.spec.ts:83–89  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81 };
82
83 function getActiveCellId(): string | null {
84 if (fixture.componentInstance.focusMode() === 'roving') {
85 const activeEl = gridElement.querySelector('[tabindex="0"]');
86 return activeEl ? activeEl.id : null;
87 }
88 return gridElement.getAttribute('aria-activedescendant');
89 }
90
91 async function setupGrid(opts?: {
92 disabled?: boolean;

Callers 1

grid.spec.tsFile · 0.85

Calls 1

getAttributeMethod · 0.65

Tested by

no test coverage detected