QChatMessage default slot behavior for array of messages #9142
-
Hi, I couldn't find in the docs an example of how to make chat component default slot behave the same way it does when used as text prop. text prop can take an array of messages and display then in conjunction. How can this effect be achieved using slots? if default slot is treated as array (v-for on root element) then it just stuffs them together into the same message. e.g. <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> Taken from example case here |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 8 replies
-
what do you mean no answer? when you quoted the answer from the forum question. at least when asking, show us what you have tried first. v-for'ing a q-chat is no different from v-for'ing other vue components, here using that snippet answered in that forum plus example from docs and array of objects for messages. |
Beta Was this translation helpful? Give feedback.
-
Does anyone has any idea how to make this work normally? |
Beta Was this translation helpful? Give feedback.
-
The required behavior will be available in Quasar v2.0.0-beta.16 and Quasar v1.15.14 |
Beta Was this translation helpful? Give feedback.
The required behavior will be available in Quasar v2.0.0-beta.16 and Quasar v1.15.14