Bottom action sheet with a cancel action.
| Prop | Type | Default | Meaning |
|---|---|---|---|
items | TxEntry[] | undefined | [] | Entries; replaced by dataSource when bound. |
dataSource | TxSource<TxEntry> | undefined | undefined | List, configuration or DataSource instance; takes precedence over items. |
disabled | boolean | undefined | false | Disables interaction. |
label | string | undefined | undefined | Label or accessible name. |
visible | boolean | undefined | false | Controls visibility. |
title | string | undefined | undefined | View title. |
cancelText | string | undefined | Abbrechen | Cancel action label. |
Events
| Event | Payload / behavior |
|---|---|
| update:visible | New visible value; accept using v-model:visible (modelValue: v-model). |
| itemClick | { itemData } |
Slots
| Slot | Arguments |
|---|---|
| item | { item } |
<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>