Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 954 Bytes

TabView.md

File metadata and controls

38 lines (24 loc) · 954 Bytes

TabView

Presents mutually exclusive content in native tabs.

<TabView ... />

Overview

This component is backed by the platform control or container. Prefer its XML tag in an .etlua template; keep view-tree construction out of controllers.

Topics

Properties

Name Type Required Description
onChange function optional Callback invoked when the value changes.
selected table optional Selected option, tab, or row identifier.
style string optional Component-specific setting passed to the native control.
tabs table optional Tab definitions containing a title and content.

Example

<TabView />

Platform notes

  • AppKit uses the AppKit implementation. UIKit uses the UIKit implementation.

Source: lua/embedded/AppKit.lua:387 (AppKit.TabView)