Opens the menu.
(opts?: {first?: boolean; last?: boolean})
| 756 | |
| 757 | /** Opens the menu. */ |
| 758 | open(opts?: {first?: boolean; last?: boolean}) { |
| 759 | this.expanded.set(true); |
| 760 | |
| 761 | if (opts?.first) { |
| 762 | this.pendingFocus.set('first'); |
| 763 | } else if (opts?.last) { |
| 764 | this.pendingFocus.set('last'); |
| 765 | } |
| 766 | } |
| 767 | |
| 768 | /** Closes the menu. */ |
| 769 | close(opts: {refocus?: boolean} = {}) { |
no test coverage detected