onItemClicked( )


Adds an event handler that runs when an item in a gallery is clicked.

Method Declaration
Copy
Method Parameters
handlerfunctionRequired

handler(event: GalleryItemClickedEvent): void The name of the function or the function expression to run when a gallery item is clicked.

Returns
Return Type:Gallery
Errors

This method doesn’t return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?