ion-menu-toggle
Menu Toggle 组件可用于切换菜单的打开或关闭。
菜单切换仅当选中的菜单启用时才可见。如果菜单被禁用或作为拆分面板显示,菜单切换将被隐藏。要始终显示菜单切换,可以将 autoHide 属性设置为 false。
更多信息请参阅 menu 文档。
属性
autoHide
| 说明 | Automatically 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. |
| 属性 | auto-hide |
| 类型 | boolean |
| 默认值 | true |
menu
| 说明 | Optional 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. |
| 属性 | menu |
| 类型 | string | undefined |
| 默认值 | undefined |
事件
该组件没有可用的事件。
方法
该组件没有可用的公共方法。
CSS Shadow Parts
该组件没有可用的 CSS 阴影部分。
CSS 自定义属性
该组件没有可用的 CSS 自定义属性。
插槽
| Name | 说明 |
|---|---|
| Content is placed inside the toggle to act as the click target. |