Version: v6On this pageion-menushadowThe Menu component is a navigation drawer that slides in from the side of the current view. By default, it slides in from the left, but the side can be overridden. The menu will be displayed differently based on the mode, however the display type can be changed to any of the available menu types. The menu element should be a sibling to the root content element. There can be any number of menus attached to the content. These can be controlled from the templates, or programmatically using the MenuController.Basic UsageAngularJavaScriptReactVueiOSMDMenu ToggleThe ion-menu-toggle component can be used to create custom button that can open or close the menu.AngularJavaScriptReactVueiOSMDMenu TypesThe type property can be used to customize how menus display in your application.AngularJavaScriptReactVueiOSMDThemingCSS Shadow PartsAngularJavaScriptReactVueiOSMDInterfacesMenuCustomEventWhile not required, this interface can be used in place of the CustomEvent interface for stronger typing with Ionic events emitted from this component.interface MenuCustomEvent<T = any> extends CustomEvent { detail: T; target: HTMLIonMenuElement;}PropertiescontentIdDescriptionThe id of the main content. When using a router this is typically ion-router-outlet. When not using a router, this is typically your main view's ion-content. This is not the id of the ion-content inside of your ion-menu.Attributecontent-idTypestring | undefinedDefaultundefineddisabledDescriptiontrueの場合、メニューは無効化される。AttributedisabledTypebooleanDefaultfalsemaxEdgeStartDescriptionThe edge threshold for dragging the menu open. If a drag/swipe happens over this value, the menu is not triggered.Attributemax-edge-startTypenumberDefault50menuIdDescriptionメニューのIDです。Attributemenu-idTypestring | undefinedDefaultundefinedsideDescriptionメニューがビューのどの側に配置されるべきか。AttributesideType"end" | "start"Default'start'swipeGestureDescriptiontrueの場合、スワイプによるメニュー操作が有効になる。Attributeswipe-gestureTypebooleanDefaulttruetypeDescriptionThe display type of the menu. Available options: "overlay", "reveal", "push".AttributetypeTypestring | undefinedDefaultundefinedEventsNameDescriptionionDidCloseメニューが閉じられたときに発します。ionDidOpenメニューが開いているときに発行されます。ionWillCloseメニューが閉じられようとするときに発します。ionWillOpenメニューが開かれようとするときに発します。MethodscloseDescriptionCloses the menu. If the menu is already closed or it can't be closed, it returns false.Signatureclose(animated?: boolean) => Promise<boolean>isActiveDescriptionReturns true is the menu is active.A menu is active when it can be opened or closed, meaning it's enabled and it's not part of a ion-split-pane.SignatureisActive() => Promise<boolean>isOpenDescriptionメニューが開いている場合は true を返します。SignatureisOpen() => Promise<boolean>openDescriptionOpens the menu. If the menu is already open or it can't be opened, it returns false.Signatureopen(animated?: boolean) => Promise<boolean>setOpenDescriptionOpens or closes the button. If the operation can't be completed successfully, it returns false.SignaturesetOpen(shouldOpen: boolean, animated?: boolean) => Promise<boolean>toggleDescriptionToggles the menu. If the menu is already open, it will try to close, otherwise it will try to open it. If the operation can't be completed successfully, it returns false.Signaturetoggle(animated?: boolean) => Promise<boolean>CSS Shadow PartsNameDescriptionbackdropメニューを開いているときに、メインコンテンツの上に表示される背景です。containerメニューの内容を格納するコンテナです。CSS Custom PropertiesNameDescription--backgroundメニューの背景--heightメニューの高さ--max-heightメニューの最大の高さ--max-widthメニューの最大幅--min-heightメニューの高さの最小値--min-widthメニューの最小幅--widthメニューの幅SlotsNo slots available for this component.