User Tools

Site Tools


en:outskirts:mages-peaks:toasts

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:outskirts:mages-peaks:toasts [2023/11/12 21:30] – ↷ Page moved from en:laelith:high-terrace:mages-peaks:toasts to en:outskirts:mages-peaks:toasts YannZeRookieen:outskirts:mages-peaks:toasts [2024/10/28 08:00] (current) – external edit 127.0.0.1
Line 18: Line 18:
 It can close itself after a specified delay (''autohide'' feature). It can close itself after a specified delay (''autohide'' feature).
  
-{{en:laelith:high-terrace:mages-peaks:classictoasts.png}}+{{en:outskirts:mages-peaks:classictoasts.png}}
  
 A specific type is also supported: "''cancellable''" toasts, having a cancel button enabling the user to cancel a pending action. A specific type is also supported: "''cancellable''" toasts, having a cancel button enabling the user to cancel a pending action.
  
-{{en:laelith:high-terrace:mages-peaks:canceltoast.png}}+{{en:outskirts:mages-peaks:canceltoast.png}}
  
 For this type of Toast, an "action" button can be provided, enabling the user to trigger or confirm an action (here, for example, the user can select any map location and when he has the right one, he clicks on 'associate'). For this type of Toast, an "action" button can be provided, enabling the user to trigger or confirm an action (here, for example, the user can select any map location and when he has the right one, he clicks on 'associate').
  
-{{en:laelith:high-terrace:mages-peaks:actiontoast.png?400|}}+{{en:outskirts:mages-peaks:actiontoast.png?400|}}
  
 ==== Sample Uses ==== ==== Sample Uses ====
Line 69: Line 69:
 The `Modal.svelte` component is provided for simple Modals. The `Modal.svelte` component is provided for simple Modals.
  
-{{en:laelith:high-terrace:mages-peaks:modal.png?400|}}+{{en:outskirts:mages-peaks:modal.png?400|}}
  
 It can accept any number of buttons, with a specified label, className (btn-primary, btn-secondary ...) and actionName. If the modal is closed by clicking on a button, the `onClose` method will receive this actionName as argument (if the modal is closed by the [X] button, `cancel` will be received). It can accept any number of buttons, with a specified label, className (btn-primary, btn-secondary ...) and actionName. If the modal is closed by clicking on a button, the `onClose` method will receive this actionName as argument (if the modal is closed by the [X] button, `cancel` will be received).
en/outskirts/mages-peaks/toasts.1699824629.txt.gz · Last modified: 2024/10/28 08:00 (external edit)