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

Method _setActiveOption

src/cdk/listbox/listbox.ts:699–701  ·  view source on GitHub ↗

* Sets the given option as active. * @param option The option to make active

(option: CdkOption<T>)

Source from the content-addressed store, hash-verified

697 * @param option The option to make active
698 */
699 _setActiveOption(option: CdkOption<T>) {
700 this.listKeyManager.setActiveItem(option);
701 }
702
703 /** Called when the listbox receives focus. */
704 protected _handleFocus() {

Callers 2

constructorMethod · 0.95
_handleFocusMethod · 0.45

Calls 1

setActiveItemMethod · 0.45

Tested by

no test coverage detected