Schwebende Hauptaktion oder aufklappbare Aktionsgruppe.
| Prop | Typ | Standard | Bedeutung |
|---|---|---|---|
items | TxEntry[] | undefined | [] | Einträge; bei Datenbindung durch dataSource ersetzt. |
dataSource | TxSource<TxEntry> | undefined | undefined | Liste, Konfiguration oder DataSource-Instanz; hat Vorrang vor items. |
disabled | boolean | undefined | false | Sperrt die Interaktion. |
label | string | undefined | undefined | Beschriftung beziehungsweise zugänglicher Name. |
icon | string | undefined | + | Symbol der Aktion. |
position | string | undefined | bottom-right | Position der Meldung beziehungsweise des Overlays. |
Ereignisse
| Event | Payload / Verhalten |
|---|---|
| itemClick | { itemData } |
<script setup lang="ts">
import { ref } from 'vue'
import { TxFloatingActionButton } from '@tekocloud.de/tecexpress'
import '@tekocloud.de/tecexpress/themes/index.css'
const saved = ref(false)
</script>
<template>
<TxFloatingActionButton :items="[{ text: 'Add' }]" @item-click="saved = true" />
</template>