Cards and gallery¶
GridViewCards¶
Card grid layout for non-tabular summaries. Data from host rows or resolved in page_data.
GridViewGallery / GridViewImage¶
Image galleries with resolved URLs in spec — image backend is a host builder, never in the spec.
GridViewGallery(
id="photos",
images=(
GridViewImageSource(url="https://…", alt="Product", variants=(...)),
),
lightbox=True,
datasource=GridViewDataSource(endpoint="/api/gallery/"), # lazy load
)
Lazy gallery: leave images empty and set datasource.endpoint.
Cell thumbnails in tables: GridViewColumn(renderer="image", extra={...}).