This is useful for those who want to show messages or notifications to users when an action is performed in the editor, e.g., the image is uploaded, the module is saved, etc.

You have the opportunity to display the editor’s messages with the script initialization and call one of these functions:


    "notifications": {
        "info": message => console.log(message),
        "error": message => console.error(message),
        "success": message => console.log(message),
        "warn": message => console.log(message),
        "loader": message => console.log(message),
        "hide": message => console.log(message)
    }

Where Notifications Params can be:

{
closeable?: boolean;
autoClose?: boolean;
customClasses?: string;
}

where: ? - means not a mandatory parameter.

You need to configure these functions to show messages in the correct place and style them the way you like.



Thank you for taking the time to read our articles. We hope you will find this information helpful.

If you have any additional questions, please email us at support@stripo.email.

We would be glad to talk with you.


Did this answer your question?