ion-menu-toggle
Ionic4项目中我们可以使用Ionic4侧边栏组件ion-menu-toggle对项目进行布局。 ion-menu-toggle官方文档地址:https://ionicframework.com/docs/api/menu-toggleThe MenuToggle component can be used to toggle a menu open or closed.
By default, it's only visible when the selected menu is active. A menu is active when it can be opened/closed. If the menu is disabled or it's being presented as a split-pane, the menu is marked as non-active and ion-menu-toggle hides itself.
In case it's desired to keep ion-menu-toggle
always visible, the autoHide
property can be set to false
.
ion-menu-toggle 属性(Properties)
autoHide | |
---|---|
Description | Automatically hides the content when the corresponding menu is not active. By default, it's |
Attribute | auto-hide |
Type | boolean |
Default | true |
menu | |
Description | Optional property that maps to a Menu's If this property is not used, |
Attribute | menu |
Type | string | undefined |