Lightbox Gallery
Last updated
Was this helpful?
Last updated
Was this helpful?
(part of package '') Extends designtime/SolutionModel: Extends runtime:
A Servoy Extra Component that displays a lightbox gallery for images with captions and thumbnails. Component needs dataproviders from the foundset for the following: imageId, image, caption and thumbnail.
This is a reference page; many components have detailed usage guides .
The label format for the album (e.g. "image %1 of %2"). Type: Default Value: "image %1 of %2"
CSS style classes applied to the button. Type:
The text displayed on the button associated with the gallery. Type:
Flag indicating whether the component is enabled for user interaction. Type: Default Value: "false"
Called when the hover button is clicked.
Parameters:
Refreshes the component by reinitializing its configuration and loading data. This can be used to apply updates or reset the gallery state.
Opens the lightbox gallery at the specified index, defaulting to the first image if the index is invalid.
Parameters:
Defines an image object for the Lightbox Gallery. scripting type: CustomType<servoyextra-lightboxgallery.image>
caption
Caption text for the image.
id
Unique identifier for the image.
imageUrl
URL of the main image.
thumbnailUrl
URL of the thumbnail image.
The duration (in milliseconds) of the fade effect when transitioning images. Type: Default Value: 600
When true, images are scaled to fit within the viewport. Type: Default Value: true
Flag indicating whether the gallery is visible. Type: Default Value: true
The icon displayed on the hover button (e.g. "fa fa-trash fa-lg"). Type: Default Value: "fa fa-trash fa-lg"
The default / minimum value is 5 (the component will not render less than 5 images); it will load more when scrolling or using next in gallery mode. Type: Default Value: 5
The duration (in milliseconds) of the fade effect for image transitions. Type: Default Value: 600
Holds a collection of images to be displayed in the lightbox gallery. Each image object includes details such as the image URL, caption, thumbnail, and identifier. Type:
The foundset containing the images and related dataproviders for image, caption, thumbnail and imageId. Type:
The maximum height for images in the gallery. Type:
The maximum width for images in the gallery. Type:
The vertical offset (in pixels) from the top when displaying the lightbox. Type: Default Value: 50
The duration (in milliseconds) of the resizing animation. Type: Default Value: 700
This will be the height of the component when used inside a responsive form; it will affect only responsive form usage. Type: Default Value: 300
When true, captions are displayed in the gallery. Type: Default Value: false
When true, a label showing the image number is displayed. Type: Default Value: true
When true, navigating past the last image wraps around to the first image. Type: Default Value: false
{} event The event object associated with the click.
{} imageId The identifier of the image related to the click.
{} [index] The index of the image to display in the lightbox. If negative, the gallery will open at the first image.
Type:
Type:
Type:
Type: