You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In the current project I am working on, we rarely use VAvatar to display images, but to display a colored circle with some initials in it, for example a green circle with the letters "I" and "M" inside, to refer to a user's initial for example.
To do so, we use the following snippet:
<VAvatarcolor="green"
text="IM"
/>
However, when trying to display a list of items, I am forced to do something like so:
Admittedly, I don't know how the internal code looks like, but I know that when using prependAvatar in a VList as an item's attribute, a VAvatar is rendered. So I think one way to make it work would be to be able to pass an avatar object to the VList's items props, with properties an Avatar needs, like follows:
Problem to solve
In the current project I am working on, we rarely use
VAvatar
to display images, but to display a colored circle with some initials in it, for example a green circle with the letters "I" and "M" inside, to refer to a user's initial for example.To do so, we use the following snippet:
However, when trying to display a list of items, I am forced to do something like so:
Proposed solution
Admittedly, I don't know how the internal code looks like, but I know that when using
prependAvatar
in a VList as an item's attribute, a VAvatar is rendered. So I think one way to make it work would be to be able to pass anavatar
object to the VList's items props, with properties an Avatar needs, like follows:The text was updated successfully, but these errors were encountered: