ion-tab
Ionic4项目中我们可以使用Ionic4底部Tabs组件组件ion-tab对项目进行布局。 ion-tab官方文档地址:https://ionicframework.com/docs/api/tabThe tab component is a child component of
See the
ion-tab 属性(Properties)
component | |
---|---|
Description | The component to display inside of the tab. |
Attribute | component |
Type | Function | HTMLElement | null | string | undefined |
tab | |
Description | A tab id must be provided for each |
Attribute | tab |
Type | string |
ion-tab 内置方法(Methods)
setActive | |
---|---|
Description | Set the active component for the tab |
Signature | setActive() => Promise |