Hi - I try to make a custom block in which I can add multiple images - I would Like to be able to see all the images in the panel preview - I only managed to show the 1 image.
this is the index.js:
panel.plugin("gallery/freeimg", {
blocks: {
freeimg: {
computed:{
source() {
return this.content.img[0] || {};
}
},
template: `
<div class='freeimg-container'>
<img class='freeimg' id='dd' :src='source.url'>
</div>
`
}
}
});
maybe someone can help me with that?
thanks!