Ticket Q560910
Visible to All Users

Toast - Formatting notify message to display multiline text

created 11 years ago

Hi,

I have a dxToast message where I display a list of items. After each item I want a line feed character / line break so that the list look good.
In simple, can I do some formatting to the message text of dxToast control.

Please let us know if we have the above option.

Regards,
Amit Mondal.

Answers approved by DevExpress Support

created 11 years ago (modified 7 years ago)

Amit,
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

    Show previous comments (3)
    Alex Skorkin (DevExpress) 11 years ago

      You are welcome, Amit!

        I've override the .dx-toast-message class with

        white-spa ce: pre-line to break on new lines

        Code
        $("#toast").dxToast({ message: message + '\n ' + messageVille + ....
        Alex Skorkin (DevExpress) 9 years ago

          Thank you for sharing your findings with us, Caim.

          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.