You can use the Gallery UI Pattern to display groups of content. This UI pattern allows users to sequentially browse images, with the notion of a beginning and an end.
How to use the Gallery UI Pattern
In Service Studio, in the Toolbox, search for
The Gallery widget is displayed.
From the Toolbox, drag the Gallery widget into the Main Content area of your application's screen.
Add the required content to the Gallery widget.
By default, the Gallery widget expects a list.
To use the Gallery UI Pattern with items from a database, drag a List Record into the Gallery widget and create your custom content.
In this example, we delete the list and add local images to the Gallery widget.
On the Element tree, select the Image widget, and on the Properties tab, from the Image drop-down, select or import the image you want in the Gallery.
Note: In this example, the image property Type is set to Local image. You can also add External and Binary Data images.
On the Properties tab, set the relevant (optional) properties, for example, the number of items you want to display on each device (see below for examples) and the space between each item (GutterSize).
After following these steps and publishing the module, you can test the pattern in your app.
4 items per row
3 items per row
2 items per row
1 item per row
|ItemInPhone (Integer): Optional||Number of items displayed on a phone.
|ItemsInTablet (Integer):||Number of items displayed on a tablet.
|ItemsInDesktop (Integer):||Number of items displayed on a desktop.
|GutterSize (Space Identifier): Optional||Defines the space between the items. The predefined sizes are: