Opens the menu.
(opts?: {first?: boolean; last?: boolean})
| 765 | |
| 766 | /** Opens the menu. */ |
| 767 | open(opts?: {first?: boolean; last?: boolean}) { |
| 768 | this.expanded.set(true); |
| 769 | |
| 770 | if (opts?.first) { |
| 771 | this.pendingFocus.set('first'); |
| 772 | } else if (opts?.last) { |
| 773 | this.pendingFocus.set('last'); |
| 774 | } |
| 775 | } |
| 776 | |
| 777 | /** Closes the menu. */ |
| 778 | close(opts: {refocus?: boolean} = {}) { |
no test coverage detected