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

Method initialize

src/cdk/menu/menu-aim.ts:142–146  ·  view source on GitHub ↗

* Set the Menu and its PointerFocusTracker. * @param menu The menu that this menu aim service controls. * @param pointerTracker The `PointerFocusTracker` for the given menu.

(menu: Menu, pointerTracker: PointerFocusTracker<FocusableElement & Toggler>)

Source from the content-addressed store, hash-verified

140 * @param pointerTracker The `PointerFocusTracker` for the given menu.
141 */
142 initialize(menu: Menu, pointerTracker: PointerFocusTracker<FocusableElement & Toggler>) {
143 this._menu = menu;
144 this._pointerTracker = pointerTracker;
145 this._subscribeToMouseMoves();
146 }
147
148 /**
149 * Calls the `doToggle` callback when it is deemed that the user is not moving towards

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected