No More Posting New Topics!

If you have a question or an issue, please start a thread in our Github Discussions Forum.
This forum is closed for new threads/ topics.

Navigation

    Quasar Framework

    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search

    How getting a new line character inside a Toast message

    Framework
    2
    3
    2997
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      paul last edited by

      I tried Toast.create(‘line1\r\nline2’), but no succes.
      thanks for helping me out.

      1 Reply Last reply Reply Quote 0
      • benoitranque
        benoitranque last edited by

        Toast.create('line 1<br/>line 2')
        Toast.create({
          html: 'line 1<br/>line 2'
        })
        

        For real life use, best use template strings:

        let messageHeader: 'hello', messageBody: 'world'
        Toaste.create(`${mesageHeader}<br/>${messageFooter}`)
        
        1 Reply Last reply Reply Quote 2
        • P
          paul last edited by

          Thanks a lot Benoit.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post