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

TxActionSheet.

Interactive preview

Bottom action sheet with a cancel action.

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.
visibleboolean | undefinedfalseControls visibility.
titlestring | undefinedundefinedView title.
cancelTextstring | undefinedAbbrechenCancel action label.

Events

EventPayload / behavior
update:visibleNew visible value; accept using v-model:visible (modelValue: v-model).
itemClick{ itemData }

Slots

SlotArguments
item{ item }
vue
<script setup lang="ts">
import { ref } from 'vue'
import { TxActionSheet, TxButton } from '@tekocloud.de/tecexpress'
import '@tekocloud.de/tecexpress/themes/index.css'
const visible = ref(false)
</script>

<template>
  <TxButton text="Actions" @click="visible = true" />
  <TxActionSheet v-model:visible="visible" :items="[{ text: 'Copy' }]" />
</template>