kor TürkçeGitHub

Tabs

Switches between panels and renders the selected panel.

kor/ui/TabsSource

When to use

  • Group parallel views of a record, such as details and history.

Examples

Two panels

Loading the example

<k:Tabs label="Order details">
	<k:Tab key="details" text="Details"><k:Text text="Delivery by truck"/></k:Tab>
	<k:Tab key="history" text="History"><k:Text text="Order created today"/></k:Tab>
</k:Tabs>

A count on the exceptions tab

Loading the example

<k:Tabs selectedKey="queue" label="Fulfillment" change=".onChange">
	<k:Tab key="queue" text="Queue" icon="list"><k:Text text="Six orders await packing."/></k:Tab>
	<k:Tab key="exceptions" text="Exceptions" count="2" state="wait"><k:Text text="Two orders have missing stock."/></k:Tab>
</k:Tabs>

API

Properties

NameTypeDefaultDescription
selectedKeystringKey of the selected tab. Empty selects the first tab
labelstringAccessible name

Aggregations

NameTypeDescription
itemsTab[]Available tabs

Events

NameTypeDescription
changekey: stringThe selected tab changed

Tab

A tab and its associated content.

Properties

NameTypeDefaultDescription
keystringTab key
textstringTab label
iconstringIcon name
countstringCount shown beside the label
statestringnoneStatus of the count badge

Aggregations

NameTypeDescription
contentsap.ui.core.Control[]Tab panel content

Related

SegmentedShell