Opens the menu.
(opts?: {first?: boolean; last?: boolean})
| 725 | |
| 726 | /** Opens the menu. */ |
| 727 | open(opts?: {first?: boolean; last?: boolean}) { |
| 728 | this.expanded.set(true); |
| 729 | |
| 730 | if (opts?.first) { |
| 731 | this.pendingFocus.set('first'); |
| 732 | } else if (opts?.last) { |
| 733 | this.pendingFocus.set('last'); |
| 734 | } |
| 735 | } |
| 736 | |
| 737 | /** Closes the menu. */ |
| 738 | close(opts: {refocus?: boolean} = {}) { |
no test coverage detected