(isOpen: boolean)
| 322 | |
| 323 | // set state rather than toggle to support triggers sharing a menu |
| 324 | private _setIsMenuOpen(isOpen: boolean): void { |
| 325 | if (isOpen !== this._menuOpen) { |
| 326 | this._menuOpen = isOpen; |
| 327 | this._menuOpen ? this.menuOpened.emit() : this.menuClosed.emit(); |
| 328 | |
| 329 | if (this._triggersSubmenu()) { |
| 330 | this._menuItemInstance._setHighlighted(isOpen); |
| 331 | } |
| 332 | |
| 333 | this._changeDetectorRef.markForCheck(); |
| 334 | } |
| 335 | } |
| 336 | |
| 337 | /** |
| 338 | * This method creates the overlay from the provided menu's template and saves its |
nothing calls this directly
no test coverage detected