Skip to content
Advertisement

Insert a image in on column in my table in quasar

How can I insert an image on one row of my table? I have tried to put v-if in my loop through the columns but I cannot get it right. I am pretty new to quasar so I might confuse things. My idea was to use the v-if for checking if the column name is ‘Image’ insert an image. And only in that column

My columns are Name, Age and Image

Here is my code:

JavaScript

Advertisement

Answer

Instead of profile image URL, you can use the props variable.

JavaScript

You can refer the following codepen.

codepen – https://codepen.io/Pratik__007/pen/bGwpyyo

User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement