跳到主要内容
版本:v8

菜单切换组件

shadow

菜单切换组件可用于切换菜单的打开或关闭状态。

菜单切换仅当所选菜单启用时才会显示。如果菜单被禁用或以分栏窗格形式呈现,菜单切换将会隐藏。如需始终显示菜单切换,可将 autoHide 属性设置为 false

更多信息请参阅菜单文档。

属性

autoHide

DescriptionAutomatically hides the content when the corresponding menu is not active.

By default, it's true. Change it to false in order to keep ion-menu-toggle always visible regardless the state of the menu.
Attributeauto-hide
Typeboolean
Defaulttrue
DescriptionOptional property that maps to a Menu's menuId prop. Can also be start or end for the menu side. This is used to find the correct menu to toggle.

If this property is not used, ion-menu-toggle will toggle the first menu that is active.
Attributemenu
Typestring | undefined
Defaultundefined

事件

No events available for this component.

方法

No public methods available for this component.

CSS Shadow Parts

No CSS shadow parts available for this component.

CSS 自定义属性

No CSS custom properties available for this component.

插槽

NameDescription
``Content is placed inside the toggle to act as the click target.