display()

Displays an fglgallery to the end user.

Syntax

display(
   id SMALLINT,
   type INTEGER,
   size INTEGER )
  1. id is the gallery identifier, as returned by the create() function.
  2. type is the type of rendering to be used for the gallery (FGLGALLERY_TYPE_*).
  3. size is the size hint for the gallery rendering (FGLGALLERY_SIZE_*).

Usage

This function displays the fglgallery in the corresponding web component field.

The id parameter is the fglgallery handler returned by the create() function.

The function can be called several times: It is typically used to refresh the image gallery, when the type or the size of the gallery needs to be changed.

The gallery type can be one off:
  • FGLGALLERY_TYPE_MOSAIC
  • FGLGALLERY_TYPE_LIST
  • FGLGALLERY_TYPE_THUMBNAILS
The gallery size can be one off:
  • FGLGALLERY_SIZE_XSMALL
  • FGLGALLERY_SIZE_SMALL
  • FGLGALLERY_SIZE_NORMAL
  • FGLGALLERY_SIZE_LARGE
  • FGLGALLERY_SIZE_XLARGE
Note: If you only need to add images to the gallery without changing the gallery type or size, there is no need to re-display the gallery: Use the addImage() and flush() functions instead.

Example

CALL fglgallery.display( id, FGLGALLERY_TYPE_MOSAIC, FGLGALLERY_SIZE_NORMAL )