Skip to Content

TabView

A tabbed view that displays one tab content at a time, with a tab bar at the top. The tab bar is built from existing framework elements (Row, Button, Column); no native UIToolkit tab control is used.

Constructor

TabView

Creates an TabView element.

ParameterDescription
tabsThe list of tabs to display. Must not be null or empty.
onTabChangedCallback invoked when the active tab changes.
initialIndexThe index of the initially selected tab. Defaults to 0.
keyAn optional key for reconciliation identity.

Properties

InitialIndex

The zero-based index of the tab that is initially selected.

OnTabChanged

Callback invoked whenever the active tab changes. Receives the new tab index as its argument.

Tabs

The list of tabs. Must not be null or empty.

Methods

CreateState

Last updated on