t×tecexpressby TeKOcloud
DEv0.7.1
Navigation & feedback / VUE

TxTabPanel.

Interactive preview

Tabs and their active content in one view.

PropTypeDefaultMeaning
dataSourceunknownundefinedList, configuration or DataSource instance; takes precedence over items.
itemsunknown[]Entries; replaced by dataSource when bound.
selectedIndexunknownundefinedZero-based active entry.
modelValueunknownundefinedControlled v-model value.
disabledunknownfalseDisables interaction.
labelunknownReiterLabel or accessible name.
orientationunknownhorizontalTab orientation.
scrollByContentunknowntrueAllows scrolling through tab content.
swipeEnabledunknownfalseAllows switching tabs by swiping.

Events

EventPayload / behavior
update:modelValueNew modelValue value; accept using v-model:modelValue (modelValue: v-model).
update:selectedIndexNew selectedIndex value; accept using v-model:selectedIndex (modelValue: v-model).
selectionChangedNew selection: { selectedIndex, itemData }.

Slots

SlotArguments
default{ selectedIndex, item }
vue
<script setup lang="ts">
import { TxTabPanel } from '@tekocloud.de/tecexpress'
import '@tekocloud.de/tecexpress/themes/index.css'

</script>

<template>
  <TxTabPanel :items="[{ text: 'Home' }]">
    <template #default="{ selectedIndex }">Page {{ selectedIndex + 1 }}</template>
  </TxTabPanel>
</template>