Function
swipeGesture
(shouldEnable: boolean, menu?: string | null)
Source from the content-addressed store, hash-verified
| 48 | }; |
| 49 | |
| 50 | const swipeGesture = async (shouldEnable: boolean, menu?: string | null): Promise<HTMLIonMenuElement | undefined> => { |
| 51 | const menuEl = await get(menu); |
| 52 | if (menuEl) { |
| 53 | menuEl.swipeGesture = shouldEnable; |
| 54 | } |
| 55 | return menuEl; |
| 56 | }; |
| 57 | |
| 58 | const isOpen = async (menu?: string | null): Promise<boolean> => { |
| 59 | if (menu != null) { |
Callers
nothing calls this directly
Tested by
no test coverage detected