跳到主要内容
版本:v7

ion-menu-toggle

shadow

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

仅当所选菜单启用时,菜单切换按钮才可见。如果菜单被禁用或作为分割窗格(split pane)呈现,菜单切换按钮将被隐藏。若要始终显示菜单切换按钮,可将 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.