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

TxToast.

Interactive preview

Timed status message; accept visibility changes in the application.

PropTypeDefaultMeaning
visibleboolean | undefinedfalseControls visibility.
messagestring | undefinedundefinedNotification text.
positionstring | undefinedbottom-rightPosition of the notification or overlay.
type"error" | "success" | "info" | "warning" | undefinedinfoAppearance/input type; see the signature for allowed values.
displayTimenumber | undefined3500Display duration; 0 or Duration.zero stays open.

Events

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

Slots

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

<template>
  <TxButton text="Notify" @click="visible = true" />
  <TxToast v-model:visible="visible" message="Saved" type="success" />
</template>