Nuxt ui / UTable component : can we set a value to the column ?
I'm trying to refactor a simple table element including a v-for for <tr> to the UTable component
I have little concerns regarding columns / value https://ui.nuxt.com/components/table#columns
I have two things that I can't resolve, given the fact that we can't pass a "value" but only "key, label..." on columns
1 - How to display the image using Utable ? It displays the src value but I would like to have it in a <img>
On simple <table> I am using
2 - How to pass a "custom" value to column ? Like here,
Action
' I would like to have a dump "Edit" button/link on every row, where I could get the current row product id to custom a modal
I really need to custom rows
and add html inside ? If yes its seems possible tu customize rows
but not to say to UTable to display rawhtml values if there is
Thanks !![No description](https://answer-overflow-discord-attachments.s3.amazonaws.com/1226479899850571856/CleanShot_2024-04-07_at_12.25.172x.png)
1 Reply
i did something like this for my project, in my case i added two buttons in the same row, like the toggle in your pic,