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

TxList.

Interactive preview

List with search, selection and optional deletion or reordering through events.

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.
modelValueunknown[] | undefined[]Controlled v-model value.
selectionModestring | undefinednoneSelection mode.
searchEnabledboolean | undefinedfalseEnables searching.
groupedboolean | undefinedfalseDisplays loaded entries by group.
allowDeletingboolean | undefinedfalseShows list entry delete actions.
allowReorderingboolean | undefinedfalseShows list entry reorder actions.
virtualboolean | undefinedfalseRenders only the visible list region.
itemHeightnumber | undefined44Fixed row height for virtual lists.
heightnumber | undefined300Height; Vue numbers use pixels, Flutter uses logical pixels.

Events

EventPayload / behavior
update:modelValueNew modelValue value; accept using v-model:modelValue (modelValue: v-model).
itemClick{ itemData, itemIndex }
itemDeletedDeleted list entry in { itemData }.
itemReorderedReordering as { itemData, fromIndex, toIndex, items }; items contains the new list.

Slots

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

</script>

<template>
  <TxList :items="[{ id: 1, text: 'One' }]" search-enabled />
</template>