MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / toggle

Function toggle

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

Source from the content-addressed store, hash-verified

32 };
33
34 const toggle = async (menu?: string | null): Promise<boolean> => {
35 const menuEl = await get(menu, true);
36 if (menuEl) {
37 return menuEl.toggle();
38 }
39 return false;
40 };
41
42 const enable = async (shouldEnable: boolean, menu?: string | null): Promise<HTMLIonMenuElement | undefined> => {
43 const menuEl = await get(menu);

Callers

nothing calls this directly

Calls 2

getFunction · 0.70
toggleMethod · 0.65

Tested by

no test coverage detected