Files
ionic-framework/core/src/components/tab
Mike Hartington 60aa027903 chore(): fix tabs (#19821)
* fix(tabs): do not wait on child tab setActive() lazy loading

* whenDefined example

* chore(): fix lint
2019-11-01 09:29:30 -07:00
..
2018-12-31 17:35:33 +01:00
2019-11-01 09:29:30 -07:00

ion-tab

The tab component is a child component of tabs. Each tab can contain a top level navigation stack for an app or a single view. An app can have many tabs, all with their own independent navigation.

See the tabs documentation for more details on configuring tabs.

Properties

Property Attribute Description Type Default
component component The component to display inside of the tab. Function | HTMLElement | null | string | undefined undefined
tab (required) tab A tab id must be provided for each ion-tab. It's used internally to reference the selected tab or by the router to switch between them. string undefined

Methods

setActive() => Promise<void>

Set the active component for the tab

Returns

Type: Promise<void>


Built with StencilJS