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

Function close

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

Source from the content-addressed store, hash-verified

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);

Callers

nothing calls this directly

Calls 3

getOpenFunction · 0.85
getFunction · 0.70
closeMethod · 0.65

Tested by

no test coverage detected