属性和事件详解
标签 | 类型 | 作用 |
---|---|---|
[root] | Page | 指定tab希望加载的页面 |
tabTitle | string | tab上显示的标题 |
tabIcon | string | tab上显示的图标 |
tabBadge | string | tab上显示的角标数字 |
tabBadgeStyle | string | 角标数字的颜色 |
enabled | boolean | tab是否可用,默认为true |
show | boolean | tab是否显示 |
[rootParams] | object | tab上传递的参数 |
tabUrlPath | string | 点击tab时跳转的页面url |
swipeBackEnabled | boolean | 是否支持滑动后退 |
tabsHideOnSubPages | boolean | 在子页面是否隐藏 |
(ionSelect) | 方法 | tab select 方法 |
1 | <ion-tabs #mainTabs (ionChange)="changeTabs()" color="danger" tabsHighlight="true"> |
1 | import { Component, ViewChild } from '@angular/core'; |
1 | import { Component } from '@angular/core'; |