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

Method isActive

src/cdk/listbox/listbox.ts:574–576  ·  view source on GitHub ↗

* Get whether the given option is active. * @param option The option to get the active state of

(option: CdkOption<T>)

Source from the content-addressed store, hash-verified

572 * @param option The option to get the active state of
573 */
574 isActive(option: CdkOption<T>): boolean {
575 return !!(this.listKeyManager?.activeItem === option);
576 }
577
578 /**
579 * Get whether the given value is selected.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected