t×tecexpressby TeKOcloud
DEv0.7.1
Editors & selection / VUE

TxLookup.

Interactive preview

Searchable single selection backed by a loadable data source.

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.
modelValueanyundefinedControlled v-model value.
placeholderstring | undefinedAuswählen …Hint for an empty input.
searchEnabledboolean | undefinedtrueEnables searching.
acceptCustomValueboolean | undefinedfalseAllows custom entries.
showSelectionControlsboolean | undefinedfalseShows multiple/select-all controls.
showClearButtonboolean | undefinedtrueShows the clear action.
maxDisplayedTagsnumber | undefined4Maximum visible tags before summarizing.
applyValueModestring | undefinedinstantlyApply immediately or through confirmation.

Events

EventPayload / behavior
update:modelValueNew modelValue value; accept using v-model:modelValue (modelValue: v-model).
valueChangedNew value in { value }; editors also include previousValue and event.
customItemCreatingCustom text in { text }; add a custom entry through the application.

Slots

SlotArguments
item{ item }
vue
<script setup lang="ts">
import { ref } from 'vue'
import { TxLookup } from '@tekocloud.de/tecexpress'
import '@tekocloud.de/tecexpress/themes/index.css'
const choice = ref(1)
</script>

<template>
  <TxLookup v-model="choice" :items="[{ value: 1, text: 'One' }]" />
</template>