# TabBar QML Type

Tab bar that will be shown in the header when Tabs is active. This component does not need to be instantiated by the developer, it is automatically created by the Tabs. More...

Import Statement: | import Lomiri.Components 1.3
Inherits: | StyledItem

- List of all members, including inherited members
- Obsolete members

## Properties

- alwaysSelectionMode : bool
- animate : bool
- model : var
- pressed : bool
- selectedIndex : int
- selectionMode : bool

## Detailed Description

## Property Documentation

alwaysSelectionMode : bool

Do not deactivate the tab bar after a specified idle time or when the user selects a new tab. Off by default.

animate : bool

Show animations when the state changes. Default: true.

model : var

The model containing the tabs to be controlled by the TabBar. The tabs are visualized by the style, displaying controlling elements based on the data specified by the roles. The default style mandates the existence of either the title or tab role, but different styles may require to have other roles (e.g. image, color). The order the role existence is checked is also determined by the style component, Default style checks the existence of the tab role first, and if not defined will use the title role.

[read-only] pressed : bool

The user is interacting with the tab bar. Depends on the style pressed property.

selectedIndex : int

The property holds the index of the selected Tab item. Note: Setting this property is DEPRECATED. Set the selectedIndex of the model instead.

selectionMode : bool

An inactive tab bar only displays the currently selected tab, and an active tab bar can be interacted with to select a tab.