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

Function enable

core/src/utils/menu-controller/index.ts:42–48  ·  view source on GitHub ↗
(shouldEnable: boolean, menu?: string | null)

Source from the content-addressed store, hash-verified

40 };
41
42 const enable = async (shouldEnable: boolean, menu?: string | null): Promise<HTMLIonMenuElement | undefined> => {
43 const menuEl = await get(menu);
44 if (menuEl) {
45 menuEl.disabled = !shouldEnable;
46 }
47 return menuEl;
48 };
49
50 const swipeGesture = async (shouldEnable: boolean, menu?: string | null): Promise<HTMLIonMenuElement | undefined> => {
51 const menuEl = await get(menu);

Callers

nothing calls this directly

Calls 1

getFunction · 0.70

Tested by

no test coverage detected