Search.../

item

Gets the gallery item.

Type:

ImageItem

 | 

VideoItem
Read Only

ImageItem

VideoItem

NAME
TYPE
DESCRIPTION
type
string

Item type. Value is "image".

slug
string

Item slug.

src
string

Image source URL.

description
string

Image description. Descriptions over 100 characters are truncated.

title
string

Image title.

link
string

URL of the image's clickable link. See here for more information about links.

Was this helpful?

Get the event's item

Copy Code
1$w("#myGallery").onEvent( (event) => {
2 let imageSrc = event.item.src; // "5a474679eac844e3a2.jpg"
3 let imageDesc = event.item.description; // "Image description"
4 let imageTitle = event.item.title; // "Alt text"
5 let imageLink = event.item.link; // "http://www.wix.com"
6 let imageTarget = event.item.target; // "_blank"
7} );