Make it easier to show toasts in custom code using the same options

Created on 5 March 2023, over 1 year ago
Updated 29 April 2023, over 1 year ago

Problem/Motivation

The current code in toastify-attach.js doesn't really allow to re-use the toast settings when showing toasts in custom code.

Proposed resolution

Add a Drupal.toastify.getDefaultSettings function that allows you to get the default settings for a certain message type.

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇧🇪Belgium dieterholvoet Brussels

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024