ion-menu-button
Ionic4项目中我们可以使用Ionic4侧边栏组件ion-menu-button对项目进行布局。 ion-menu-button官方文档地址:https://ionicframework.com/docs/api/menu-buttonMenu Button is component that automatically creates the icon and functionality to open a menu on a page.
ion-menu-button 属性(Properties)
autoHide | |
---|---|
Description | Automatically hides the menu button when the corresponding menu is not active |
Attribute | auto-hide |
Type | boolean |
Default | true |
color | |
Description | The color to use from your application's color palette.
Default options are: |
Attribute | color |
Type | string | undefined |
menu | |
Description | Optional property that maps to a Menu's |
Attribute | menu |
Type | string | undefined |
mode | |
Description | The mode determines which platform styles to use. |
Attribute | mode |
Type | "ios" | "md" |
ion-menu-button中的CSS 自定义属性
Name | Description |
---|---|
--color | Color of the menu button |
--padding-bottom | Padding bottom of the button |
--padding-end | Padding end of the button |
--padding-start | Padding start of the button |
--padding-top | Padding top of the button |