RESPONSIVE CSS FRAMEWORK

Photo gallery

Callback functions

Event property Description
init This callback function is called after the gallery has been initialized.
sourceLoadStart This callback function is called when the gallery component begins to load the source XML file.
sourceLoadComplete This callback function is called when the source XML file was successfully loaded.
sourceLoadError This callback function is called when there was an error during the loading process of the source XML file.
itemLoadStart(itemObj) This callback function is called when the gallery starts to load an item. An object is provided as parameter to the callback function which contains the index, image, thumbnail, title, description and link properties of the item.
itemLoadStop(itemObj) This callback function is called when the gallery finished loading an item. An object is provided as parameter to the callback function which contains the index, image, thumbnail, title, description and link properties of the item.
itemLoadError(itemObj) This callback function is called when there was an error during the loading process of an item. An object is provided as parameter to the callback function which contains the index, image, thumbnail, title, description and link properties of the item.
itemShow(itemObj) This callback function is called when an item is displayed by the gallery. An object is provided as parameter to the callback function which contains the index, image, thumbnail, title, description and link properties of the item.
itemHide(itemObj) This callback function is called when an item is hidden by the gallery. An object is provided as parameter to the callback function which contains the index, image, thumbnail, title, description and link properties of the item.
slideshowStart This callback function is called when the gallery starts the slideshow. This can happen automatically when the autoSlideshow parameter is set to true.
slideshowStop This callback function is called when the gallery stops the slideshow.
folderChange(folderObj) This callback function is called when the user changes the current folder to another one. An object is provided with the new folder name as parameter to the callback function.
The two objects (itemObj and folderObj) passed to the callback functions have the following structures:
itemObj.index - the index of the image item that triggered the event
itemObj.image - the URL of the image
itemObj.thumbnail - the URL of the thumbnail
itemObj.title - the title of the image
itemObj.description - the description of the image
itemObj.link - the link associated with the image

folderObj.name - the name of the selected folder