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

    markdown and chat

    Framework
    3
    9
    368
    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.
    • matroskin
      matroskin last edited by

      How to use @quasar/qmarkdown in QChat component?

      1 Reply Last reply Reply Quote 0
      • s.molinari
        s.molinari last edited by

        @matroskin - Your going to have to put some effort into looking at the docs yourself. Those questions are much too general.

        Scott

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

          nevertheless, I see in docs how to use markdown component, like this <q-markdown>text</q-markdown>
          but how can I use it in methods?

          1 Reply Last reply Reply Quote 0
          • s.molinari
            s.molinari last edited by

            Took me 30 seconds to find this. What docs are you looking at?

            https://quasarframework.github.io/app-extension-qmarkdown/docs

            Scott

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

              @matroskin You mean more like a Quasar plugin, type functionality?

              1 Reply Last reply Reply Quote 0
              • s.molinari
                s.molinari last edited by s.molinari

                Now that I’ve read his post for a third time, I think he’s talking about adding QMarkdown to the Chat component.

                If that’s the case:

                <template>
                  <div class="q-pa-md row justify-center">
                    <div style="width: 100%; max-width: 400px">
                      <q-chat-message
                        name="me"
                        avatar="https://cdn.quasar.dev/img/avatar3.jpg"
                        stamp="7 minutes ago"
                        sent
                        bg-color="amber-7"
                     >
                       <q-markdown :src="someMarkdown"/>
                     </q-chat-message>
                     </div>
                  </div>
                </template>
                
                

                @Hawkeye64 - Correct me if I’m wrong.

                Scott

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

                  Yep, but messages is Array, so I should use v-for in default slot of q-chat-message, am I right?

                  1 Reply Last reply Reply Quote 0
                  • s.molinari
                    s.molinari last edited by

                    Sort of. You’ll need to probably do a bit more, like with QVirtualScroll or QInfiniteScroll for the overall solution.

                    Scott

                    1 Reply Last reply Reply Quote 1
                    • Hawkeye64
                      Hawkeye64 last edited by

                      Perfect! Love it.❤

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