Can anyone help me out how to pass Airtable data into the 'data-src' variable for my image? Details below.
I created a simple html site, where I use Vue/Airtable to pass some images from my Airtable base to an html object:
<img class="lazy" id="img1" :src="item['fields']['Photo'][0]['thumbnails']['large']['url']" alt="" v-if="item['fields']['Photo']">
I have included jQuery Lazy, but can't seem to get it to work – everything loads as soon as the page loads. I think I need to pass the Airtable data to a 'data-src' variable rather than ':src' – but when I try the code below, nothing appears at all:
<img class="lazy" id="img1" :data-src="item['fields']['Photo'][0]['thumbnails']['large']['url']" alt="" v-if="item['fields']['Photo']">
I just started out using Vue and Airtable, and have very little coding experience overall. Any help appreciated!