I’m working on a plugin / a custom block. In the backend, I want to preview an array of images, like so:
panel.plugin("me/mycustomplugin", {
blocks: {
mycustomplugin: {
template: `
<li v-for="image in content.myimagefiles" :key="image.id">
<img
:src="image.url"
:srcset="image.image.srcset"
:alt="image.alt"
/>
</li>
`
}
}
});
This always loads the original (large) version of an image. Would it be possible to display only thumbnails instead?