t×tecexpressby TeKOcloud
DEv0.7.1
Data & views / VUE

TxGallery.

Interactive preview

Browsable gallery with optional autoplay; it is not a media player.

PropTypeDefaultMeaning
itemsTxEntry[] | undefined[]Entries; replaced by dataSource when bound.
dataSourceTxSource<TxEntry> | undefinedundefinedList, configuration or DataSource instance; takes precedence over items.
disabledboolean | undefinedfalseDisables interaction.
labelstring | undefinedundefinedLabel or accessible name.
selectedIndexnumber | undefinedundefinedZero-based active entry.
loopboolean | undefinedfalseAllows wrapping from the last gallery entry to the first.
slideshowDelaynumber | undefined0Automatic navigation interval; 0 disables it.
showIndicatorboolean | undefinedtrueShows gallery indicators.
heightnumber | undefined240Height; Vue numbers use pixels, Flutter uses logical pixels.

Events

EventPayload / behavior
update:selectedIndexNew selectedIndex value; accept using v-model:selectedIndex (modelValue: v-model).

Slots

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

</script>

<template>
  <TxGallery :items="['One', 'Two']"><template #item="{ item }">{{ item }}</template></TxGallery>
</template>