Can I use pictures in the q-table component?

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

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

    but i’m getting just the text could

    can you help display the picture

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


Log in to reply