webforj / webforj-docs

https://documentation.webforj.com/
0 stars 1 forks source link

Document Toast component #180

Open hyyan opened 2 months ago

hyyan commented 2 months ago

PR: https://github.com/webforj/webforj/pull/648

Toasts

  1. What is a Toast Notification?

  2. Basic Syntax Using the "show" Method

    • Provide a demonstration of how to use the "show" method to display a toast notification.
  3. Durations: Configuring the Timeout of the Toast

    • Include working code samples to show how to set the duration of the toast.
    • Explain how to create persistent toasts that do not disappear automatically.
  4. Placement

    • Document where the toast can be positioned on the screen.
    • Provide a demonstration of different positioning options.
  5. Stacking

    • Explain that multiple notifications can be displayed simultaneously, stacking vertically.
    • Describe how the ordering of stacked notifications depends on their placement.
  6. Actions and Interactivity

    • Demonstrate how to add interactive content to notifications, allowing users to perform actions directly from the toast.
  7. Themes (Under Styling)

    • Show different styling options for toasts, including custom themes.
    • Provide a demonstration of how to apply and customize these themes.