Nachricht, Darstellung, Dauer, Position und optionale Aktion einer Benachrichtigung.
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 }
}| Feld | Bedeutung |
|---|---|
| message | Meldungstext. |
| type | Darstellungs-/Eingabetyp; zulässige Werte siehe Signatur. |
| displayTime | Anzeigedauer; 0 beziehungsweise Duration.zero bleibt offen. |
| position | Position der Meldung beziehungsweise des Overlays. |
| action | Optionale Aktion mit Text und onClick-Callback. |
import type { TxNotifyOptions } from '@tekocloud.de/tecexpress'
const example: TxNotifyOptions = { message: 'Saved', type: 'success' }
console.log(example)