Sets or gets the items in a gallery.
Setting the items property sets the gallery items that make up the gallery.
Set items to an empty array ([]) to remove the current gallery items.
Getting the items property returns the current list of gallery items that make up the gallery.
You cannot modify the gallery item array in-place. To add, change, or remove individual gallery items:
About ImageItem Items
An ImageItem is an object used by the Gallery properties items and currentItem to represent a single gallery image.
The src property of a ImageItem can be:
The image source format for Media Manager images is: wix:image://v1//#originWidth=&originHeight=[&watermark=]
About VideoItem Items
A VideoItem is an object used by the Gallery properties items and currentItem to represent a single gallery video.
A VideoItem can be used as an item in a Pro Gallery.
To determine if your gallery is a Pro Gallery or a standard gallery, hover over the gallery while it is not selected. The gallery type appears above the upper left corner of the gallery. If the type is "Wix Pro Gallery", then your gallery is a Pro Gallery. If the type is anything other than "Wix Pro Gallery", your gallery is a standard gallery.
The video source format is: wix:video://v1//#posterUri=&posterWidth=&posterHeight=
Notes:
You can only get the items of a Pro Gallery using the items property if you set its items using the items property or connect the gallery to a dataset first. If you set the gallery's items in the Editor, you are not be able to retrieve them with the items property. This limitation does not apply to standard galleries.
To determine if your gallery is a Pro Gallery, hover over the gallery while it is not selected. The gallery type appears above the upper left corner of the gallery. If the type is "Wix Pro Gallery", then your gallery is a Pro Gallery. If the type is anything other than "Wix Pro Gallery", the limitation described above does not apply to your gallery.