Notifications

πŸ“’ Laptop Notifications

Event: kartik-laptop:client:notify

Use this event to display notifications inside the laptop UI.


Triggering a Notification

Basic Notification

TriggerEvent("kartik-laptop:client:notify", "Hello World!")

Notification Types

TriggerEvent("kartik-laptop:client:notify", "Saved successfully!", "success")
TriggerEvent("kartik-laptop:client:notify", "An error occurred.", "error")
TriggerEvent("kartik-laptop:client:notify", "Please check the form.", "warning")
TriggerEvent("kartik-laptop:client:notify", "Loading...", "info")

Visibility-Based Notification

Only shows if the specified app is visible.


Server β†’ Client Example

Last updated