Wix gallery pro has TextItem and VideoItem data types, but I can’t get how to build up an array of images and videos combined.
It’s easy to add an image to Gallery pro like this:
const items = [];
items.push( {
“src”: “http://some-url.com/image.jpeg”,
“title”: “Test title”,
“description”: “Description”,
“link”: “http://some-location.com”
}
);
$w(“#gallery1”).items = items;
I tried using ‘type’ property (as of manual for these data types), but with no luck.
How do you add other types of data to Gallery pro via Wix Code? Is it on Earth possible?
1 Like