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

    Can I use pictures in the q-table component?

    Framework
    2
    2
    447
    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.
    • G
      gamempvs last edited by

      I wanted to display the pictures in the component in this way

            columns: [
              {
                name: 'photo',
                label: 'User photo',
                align: 'left',
                field: row => row.photo.file,
                format: val => `<q-img :src="${val}" spinner-color="white" 
                style="height:140px; max-width: 150px"/>`,
              },
             ],
      

      but i’m getting just the text could
      dd.png

      can you help display the picture

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

        Try using the body-cell-[name] scoped slot.

        Scott

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