Skip to main content

TabBarView

A page view with one child per tab.

Note

The length of controls must be the same as the length property of the ancestor Tabs.

Inherits: LayoutControl, AdaptiveControl

Properties

  • clip_behavior - Defines how the controls will be clipped.
  • controls - A list of controls, where each control represents the content of a corresponding tab.
  • viewport_fraction - The fraction of the viewport that each page should occupy.

Properties

clip_behaviorclass-attributeinstance-attribute

Defines how the controls will be clipped.

controlsinstance-attribute

controls: list[Control]

A list of controls, where each control represents the content of a corresponding tab. So, a control at index i in this list is displayed when the Tab at index i is selected.

Note

The length of this list must be equal to the number of tabs specified in an ancestor Tabs control.

viewport_fractionclass-attributeinstance-attribute

viewport_fraction: Number = 1.0

The fraction of the viewport that each page should occupy.

For example, 1.0 (the default), means each page fills the viewport in the scrolling direction.