Pro Gallery allows 3 kind of items (image, video and text) using the "type": "image", "type":"video" or "type": "text" on item object.
There are examples inserting Image and Video item but there is no example for Text.
$w('#gallery1').items = [{
"type": "video",
"alt": "",
"description": "Desc",
"title": "Title",
"height": 720,
"width": 1080,
"src": <image url>,
"link": <url>,
"thumbnail": <image url>
}]
I tried
{
"type": "text",
"alt": "",
"description": "Desc",
"title": "Title",
"height": 720,
"width": 1080,
"src": "Some text here",
"link": <url>,
}
But nothing.
To provide that capability would have necessitated the addition of a number of properties for the coder to be able to replicate in code what this Wix text editor dialog offers. This would not be trivial to provide, but I can see how it would be valuable in terms of setting up a dynamic slideshow based on the latest data and image content in a collection.
What are you attempting to do?