(menu?: string | null)
| 24 | }; |
| 25 | |
| 26 | const close = async (menu?: string | null): Promise<boolean> => { |
| 27 | const menuEl = await (menu !== undefined ? get(menu, true) : getOpen()); |
| 28 | if (menuEl !== undefined) { |
| 29 | return menuEl.close(); |
| 30 | } |
| 31 | return false; |
| 32 | }; |
| 33 | |
| 34 | const toggle = async (menu?: string | null): Promise<boolean> => { |
| 35 | const menuEl = await get(menu, true); |