Gallery
Shows a photo list as thumbnails that open full screen.
Use it for: Showing the photos of a record, such as a daily log. Tapping a thumbnail opens a viewer: swipe between photos, pinch to zoom, see “7 / 10”, share the photo, close. columns sets 2 to 4 across; maxShown shows that many and a “+N” tile.
- CategoryVisual
- ChildrenNone
- DataOne field (bindings.value)
- ActionNone
| Prop | Required | Accepts | What it does |
|---|---|---|---|
columns |
No | whole number, 2 to 4 | Number of columns. |
maxShown |
No | whole number, 1 to 30 | |
emptyText |
No | text, up to 200 characters | Shown when there are no rows. |
Every component also accepts id (required, unique on its screen), and the optional preset and style described in Style options. Every component except Screen accepts when, described in Data-driven look.
Example
Section titled “Example”From the Northline Builders example project:
{ "id": "log-page-photos", "type": "Gallery", "props": { "columns": 3 }, "bindings": { "value": { "model": "log-card", "field": "photos" } }, "when": { "model": "log-card", "field": "photos", "is": { "source": "test", "test": "not-empty" } }}