GalleryView

GalleryView[{expr1,expr2,}]

represents an object in which the expri are displayed in a browsable gallery layout.

GalleryView[{assoc1,assoc2,}]

uses each of the associations associ to define the display of an item in the gallery.

Details and Options

  • CloudDeploy[GalleryView[]] yields a cloud object containing an active version of the gallery.
  • Items given as associations can have the following elements:
  • "Content"main content, often an image or hyperlink
    "Title"title to display
    "Description"description to display
  • GalleryView has the option Pagination, which controls how items should be laid out between pages. Possible values include:
  • nn items per page
    {n,m}an array of n rows and m columns on each page

Examples

open allclose all

Basic Examples  (1)

Deploy GalleryView to the Wolfram Cloud:

To create a list of freshly generated expressions each time a user visits the CloudObject, you can use Delayed:

Scope  (2)

Association can be used to specify item layout:

Hyperlink can be used to make items clickable:

Clicking a disk opens another CloudObject:

Options  (3)

Pagination  (1)

By default, GalleryView infers an optimal pagination layout:

The Pagination option can be used to specify how to paginate results:

AppearanceRules  (1)

Use AppearanceRules to specify a title and description for your page:

PageTheme  (1)

PageTheme can be used to change the page style:

Introduced in 2016
 (11.0)