t×tecexpressby TeKOcloud
ENv0.7.1
API & Datentypen / VUE

TxNotifyOptions.

Nachricht, Darstellung, Dauer, Position und optionale Aktion einer Benachrichtigung.

ts
interface TxNotifyOptions {
  message: string
  type?: 'info' | 'success' | 'warning' | 'error'
  displayTime?: number
  position?: 'top-right' | 'top-left' | 'bottom-right' | 'bottom-left'
  action?: { text: string; onClick: () => void }
}
FeldBedeutung
messageMeldungstext.
typeDarstellungs-/Eingabetyp; zulässige Werte siehe Signatur.
displayTimeAnzeigedauer; 0 beziehungsweise Duration.zero bleibt offen.
positionPosition der Meldung beziehungsweise des Overlays.
actionOptionale Aktion mit Text und onClick-Callback.
ts
import type { TxNotifyOptions } from '@tekocloud.de/tecexpress'
const example: TxNotifyOptions = { message: 'Saved', type: 'success' }
console.log(example)