Opens the menu.
(opts?: {first?: boolean; last?: boolean})
| 733 | |
| 734 | /** Opens the menu. */ |
| 735 | open(opts?: {first?: boolean; last?: boolean}) { |
| 736 | this.expanded.set(true); |
| 737 | |
| 738 | if (opts?.first) { |
| 739 | this.pendingFocus.set('first'); |
| 740 | } else if (opts?.last) { |
| 741 | this.pendingFocus.set('last'); |
| 742 | } |
| 743 | } |
| 744 | |
| 745 | /** Closes the menu. */ |
| 746 | close(opts: {refocus?: boolean} = {}) { |
no test coverage detected