MCPcopy
hub / github.com/angular/components / getActiveOptionIndex

Function getActiveOptionIndex

src/material/timepicker/timepicker.spec.ts:1410–1412  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1408 }
1409
1410 function getActiveOptionIndex(): number {
1411 return getOptions().findIndex(o => o.classList.contains('mat-mdc-option-active'));
1412 }
1413
1414 function getToggle(fixture: ComponentFixture<unknown>): HTMLButtonElement {
1415 return fixture.nativeElement.querySelector('mat-timepicker-toggle button');

Callers 1

timepicker.spec.tsFile · 0.85

Calls 1

getOptionsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…