Image carousel
This widget is designed to be used for the approval page. It allows for displaying a single image as well as multiple images.
General info
- type:
image-carousel
Params
images: an array of image elements.lightbox: enables a lightbox (a large preview window opened when you click an image). The default value isfalse.timestamp: enables timestamps. You can set this parameter totrueif you have a problem with image caching. The default value isfalse.containerColor: the color of the image container (in CSS format). Use it if your preview images are not looking good on the default background (which may happen if you are displaying images on a mockup).showIndex: iftrue, an image number appears in the list (like 1/5). The default value isfalse.showImageHeader: iftrue, image headers appear in the carousel. The default value isfalse.imageSelectorPosition: position of the thumbnails ("left"|"bottom"|"right"|"no"). The default value is"bottom".resetIndexOnUpdate: iftrue, the first image will be selected when updating the list of images. The default value isfalse.autoPlay: image switching speed, in milliseconds. By default, this value is0, and the autoplay is disabled.arrowButtonsEnabled: enables arrow buttons next to the main image. The default value isfalse.
Image elements
Each element of the images array is described by the following structure:
{
"title": "Front page",
"url": "http://example.com/api/rendering/product1.png&w=300&h=300",
"urlHD": "http://example.com/api/rendering/product1.png&w=1200&h=1200"
}
It is possible to omit urlHD. In this case, the image used in url will be shown on both a thumbnail and a larger image. If you set both urlHD and url, the url will be used only for the thumbnail and urlHD for the large image.