Salla Docs
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
Salla CLI
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. UI Module
  • Embedded SDK
    • Overview
    • Getting Started
    • Installation
    • Authentication
    • App Design Guidelines
    • Create an Embedded App
    • Playground
  • Auth Module
    • Get Token
    • Client Introspect
    • Refresh Token
  • Page Module
    • Iframe Resizing
    • External Redirects
    • Navigation
    • Set Page Title
    • UI Module
      • Confirm Dialogs
      • Toast Notifications
      • Loading States
  • Nav Module
    • Create Navbar Action
    • Listen for Nav Actions
    • Clearing Nav Actions
  • Endpoints
    • Token Introspect
      POST
  • Resources
    • Support
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
Salla CLI
Merchant
Merchant
  • Merchant API
  • Salla OAuth 2.0
  • Merchant Dashboard
Partner APIs
Partner APIs
  • App API
  • Shipments & Fulfillment APIs
  • Salla AWB
  • Recurring Payments API
  • App Functions
  • Billing System Salla partners
Storefront
Storefront
  • Twilight Engine
  • Twilight SDK
  • Web Components
  • Ecommerce Events
  • Change Log
Salla CLI
Salla - Opensource
Salla - Developers Community
  1. UI Module

Toast Notifications

Toasts are non-blocking notifications used to provide quick feedback to the user about an operation's status. They appear at the top of the Salla Merchant Dashboard and automatically disappear after a few seconds.

Usage#

The SDK provides both a generic show method and several convenience methods for common notification types.
Convenience Methods
Generic show()
Most common usage for standard feedback.

API Reference#

Methods#

MethodParametersDescription
error(message, duration?)message: string, duration?: numberDisplays a red error toast.
warning(message, duration?)message: string, duration?: numberDisplays an orange warning toast.
info(message, duration?)message: string, duration?: numberDisplays a blue info toast.
show(options)options: ToastOptionsGeneric method for triggered a toast with full configuration.

ToastOptions#

PropertyTypeRequiredDefaultDescription
typestringYes-Notification type: "success", "error", "warning", or "info".
messagestringYes-The message text to display.
durationnumberNo3000Visibility duration in milliseconds.
💡
Best Practices
Keep it brief: Toasts should be readable at a glance. Avoid long sentences.
Avoid Success toast: "Success" is the expected result. No need to notify the user about a successful action; the UI update is enough.
One at a time: The SDK handles queuing, but you should avoid triggering multiple toasts simultaneously for the same action.
Modified at 2026-02-02 10:34:37
Previous
Confirm Dialogs
Next
Loading States