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

Function isOpen

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

Source from the content-addressed store, hash-verified

56 };
57
58 const isOpen = async (menu?: string | null): Promise<boolean> => {
59 if (menu != null) {
60 const menuEl = await get(menu);
61 // eslint-disable-next-line @typescript-eslint/prefer-optional-chain
62 return menuEl !== undefined && menuEl.isOpen();
63 } else {
64 const menuEl = await getOpen();
65 return menuEl !== undefined;
66 }
67 };
68
69 const isEnabled = async (menu?: string | null): Promise<boolean> => {
70 const menuEl = await get(menu);

Callers

nothing calls this directly

Calls 3

getOpenFunction · 0.85
getFunction · 0.70
isOpenMethod · 0.65

Tested by

no test coverage detected