Skip to main content

Overview

Gallery view displays your records as visual cards, similar to a Pinterest or Instagram layout. Each card can feature a cover image with key fields displayed below, making it perfect for visual content like products, portfolios, or image-heavy datasets.
Gallery view automatically detects attachment fields in your table and uses them as cover images.
Gallery view is ideal for:
  • Product catalogs - Display products with images, prices, and descriptions
  • Portfolio management - Showcase projects, designs, or creative work
  • Real estate listings - View properties with photos and key details
  • Team directories - Display team members with profile photos
  • Asset management - Track visual assets like marketing materials or inventory
  • Media libraries - Organize photos, videos, or documents with previews

Configuration Options

Gallery view provides several configuration options to customize the card display:

Cover Image

Choose which attachment field to use as the card’s cover image.
PropertyTypeDescription
fk_cover_image_col_idstringID of the attachment column to use as cover image
cover_image_idxnumberIndex of the attachment to display (for multi-file fields)
meta.fk_cover_image_object_fitstringImage fit mode: “fit” (contain) or “cover” (fill)
The entire image is visible within the card, with possible letterboxing.
{
  "meta": {
    "fk_cover_image_object_fit": "fit"
  }
}
Best for:
  • Product images on white backgrounds
  • Logos and graphics
  • When aspect ratio must be preserved
Control how users navigate through cards:
PropertyTypeDescription
next_enabledbooleanShow “Next” button on cards
prev_enabledbooleanShow “Previous” button on cards
Enable navigation buttons when users need to browse through records sequentially, like reviewing submissions or approvals.

File Restrictions

Optionally restrict which files can be uploaded:
PropertyTypeDescription
restrict_typesstringAllowed MIME types (e.g., “image/png,image/jpeg”)
restrict_sizestringMaximum file size in bytes
restrict_numberstringMaximum number of files

Display Options

PropertyTypeDescription
show_all_fieldsbooleanDisplay all fields on the card or only selected ones
  • Scroll - Scroll vertically to browse through cards
  • Grid layout - Cards automatically arrange in responsive columns
  • Click to expand - Click any card to open the full record details
  • Arrow navigation - Use next/previous buttons if enabled

Card Information

Each card displays:
  • Cover image from the selected attachment field
  • Primary field value as the card title
  • Additional fields configured in the view
  • Record action buttons (edit, delete, etc.)
The number of columns automatically adjusts based on your screen width, providing an optimal viewing experience on any device.

Use Cases and Examples

{
  "fk_cover_image_col_id": "product_image_column_id",
  "meta": {
    "fk_cover_image_object_fit": "cover"
  },
  "show_all_fields": false
}
Display fields:
  • Product name (primary field)
  • Price
  • Stock status
  • Category

Team Directory

{
  "fk_cover_image_col_id": "profile_photo_column_id",
  "meta": {
    "fk_cover_image_object_fit": "fit"
  },
  "next_enabled": true,
  "prev_enabled": true
}
Display fields:
  • Name (primary field)
  • Title
  • Department
  • Email

Real Estate Listings

{
  "fk_cover_image_col_id": "property_photos_column_id",
  "cover_image_idx": 0,
  "meta": {
    "fk_cover_image_object_fit": "cover"
  }
}
Display fields:
  • Property address (primary field)
  • Price
  • Bedrooms/Bathrooms
  • Square footage
  • Status (For Sale/Sold)

Best Practices

Choose High-Quality Images - Gallery view is visual-first. Ensure cover images are high resolution and properly sized for best results.
Limit Visible Fields - Show only the most important 3-5 fields on cards to avoid clutter. Users can click to see full details.
Use Consistent Image Sizes - When using “cover” fit mode, images with similar aspect ratios create a more uniform and professional appearance.
Set Default Cover Image - For records without images, consider adding a default placeholder image to maintain visual consistency.
Missing Images - If a record doesn’t have an image in the cover image field, the card will still display with visible fields but without a cover photo.

Performance Considerations

Gallery view is optimized for performance:
  • Lazy loading - Images load as you scroll
  • Thumbnail generation - Automatically creates optimized image sizes
  • Virtual scrolling - Handles thousands of records efficiently
  • Responsive layout - Adapts to screen size automatically
For best performance:
  • Use appropriately sized source images (1000-2000px wide is ideal)
  • Avoid showing too many fields per card (5-7 maximum)
  • Apply filters to reduce the number of displayed records
  • Consider pagination for very large datasets (1000+ records)
Gallery view is perfect for public sharing:
  • Create a shared view for external stakeholders
  • Share product catalogs with customers
  • Publish portfolios publicly
  • Embed galleries in websites
Shared gallery views can be password-protected and have download restrictions to protect your images and data.

API Reference

Create a gallery view programmatically:
const galleryView = {
  fk_view_id: 'view_id',
  fk_cover_image_col_id: 'attachment_column_id',
  next_enabled: true,
  prev_enabled: true,
  meta: {
    fk_cover_image_object_fit: 'cover'
  }
}
Update gallery view settings:
const updates = {
  fk_cover_image_col_id: 'new_attachment_column_id',
  meta: {
    fk_cover_image_object_fit: 'fit'
  }
}