Ticket T586454
Visible to All Users
Duplicate

We have closed this ticket because another page addresses its subject:

Toast - Formatting notify message to display multiline text

Multiple Lines in a Toaster

created 7 years ago

Is there an easy way to show multiple lines in a toaster notification?  I want to show errors to the user and under some conditions I have an array of error strings.  I tried adding "\r\n" or '<br>' but did not have success.

Any ideas would be appreciated. Thanks

Answers approved by DevExpress Support

created 7 years ago (modified 7 years ago)

Hello Juan,
You can override the dx-toast-message class as follows:

CSS
.dx-toast-message { white-space: pre-line; }

Here's an example: https://codepen.io/AlexSkorkin/pen/WdNvax

    Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

    Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.