MCPcopy
hub / github.com/ionic-team/ionic-framework / open

Function open

core/src/utils/menu-controller/index.ts:18–24  ·  view source on GitHub ↗
(menu?: string | null)

Source from the content-addressed store, hash-verified

16 const menus: MenuI[] = [];
17
18 const open = async (menu?: string | null): Promise<boolean> => {
19 const menuEl = await get(menu, true);
20 if (menuEl) {
21 return menuEl.open();
22 }
23 return false;
24 };
25
26 const close = async (menu?: string | null): Promise<boolean> => {
27 const menuEl = await (menu !== undefined ? get(menu, true) : getOpen());

Callers

nothing calls this directly

Calls 2

getFunction · 0.70
openMethod · 0.65

Tested by

no test coverage detected