Close the opened menu.
()
| 129 | |
| 130 | /** Close the opened menu. */ |
| 131 | close() { |
| 132 | if (this.isOpen()) { |
| 133 | this.closed.next(); |
| 134 | |
| 135 | this.overlayRef!.detach(); |
| 136 | this._changeDetectorRef.markForCheck(); |
| 137 | } |
| 138 | this._closeSiblingTriggers(); |
| 139 | } |
| 140 | |
| 141 | /** |
| 142 | * Get a reference to the rendered Menu if the Menu is open and rendered in the DOM. |
no test coverage detected