t×tecexpressby TeKOcloud
DEv0.7.1
API & types / VUE

TxNotifyOptions.

Message, appearance, duration, position and optional notification action.

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 }
}
FieldMeaning
messageNotification text.
typeAppearance/input type; see the signature for allowed values.
displayTimeDisplay duration; 0 or Duration.zero stays open.
positionPosition of the notification or overlay.
actionOptional action with text and an onClick callback.
ts
import type { TxNotifyOptions } from '@tekocloud.de/tecexpress'
const example: TxNotifyOptions = { message: 'Saved', type: 'success' }
console.log(example)