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

TxPopup.

Interactive preview

Dialog with a title and content. Before-events can be cancelled synchronously; external visibility remains authoritative.

PropTypeDefaultMeaning
visibleboolean | undefinedfalseControls visibility.
titlestring | undefinedDialogView title.
showCloseButtonboolean | undefinedtrueShows a close action.
hideOnOutsideClickboolean | undefinedfalseAllows closing by clicking outside.
widthstring | number | undefined480Width; Vue numbers use pixels, Flutter uses logical pixels.
heightstring | number | undefinedundefinedHeight; Vue numbers use pixels, Flutter uses logical pixels.
fullScreenboolean | undefinedfalseFills the screen.
dragEnabledboolean | undefinedfalseAllows dragging the dialog.
resizeEnabledboolean | undefinedfalseAllows resizing the dialog.
positionstring | undefinedcenterPosition of the notification or overlay.

Events

EventPayload / behavior
update:visibleNew visible value; accept using v-model:visible (modelValue: v-model).
showingBefore showing: { cancel }; set synchronously to true to cancel.
hidingBefore user-initiated closing: { cancel }; synchronously cancellable.
shownAfter showing, without a payload.
hiddenAfter hiding, without a payload.

Slots

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

<template>
  <TxButton text="Open" @click="visible = true" />
  <TxPopup v-model:visible="visible" title="Details">Hello</TxPopup>
</template>