Present each product with its photo, name, price and previous price. Mark products as New, Sale or Low stock with a badge, and page the grid automatically on the wall clock.
Live card
Category: Retail. Tags: Stores, Prices and rates.
Data and privacy
This card uses its configured properties and live card data.
Properties
For theme, background, accent, colour overrides and position, see Common properties.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Featured" | maxLength: 40 | |
currency | string | "$" | maxLength: 4 | Shown before every price. |
perPage | integer | 6 | minimum: 1; maximum: 8 | |
pageSeconds | integer | 10 | minimum: 5; maximum: 120 |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
products | array | [] | minItems: 0; maxItems: 24 | Products in order. Pages hold perPage products, balanced, and turn every pageSeconds on the wall clock. |
products[].name | string | minLength: 1; maxLength: 60; Required | ||
products[].detail | string | "" | maxLength: 60 | A line under the name: size, origin, flavour. |
products[].price | number | minimum: 0; maximum: 1000000 | ||
products[].wasPrice | number | minimum: 0; maximum: 1000000 | The earlier price, shown struck through. Above price, it also marks the product as on sale. | |
products[].badge | string | "" | "", "new", "sale", "low-stock" | Empty marks nothing, except that a wasPrice above price reads as sale. |
products[].photo | string | "" | maxLength: 2048 | A project media reference (media:<id>) the host resolves; empty or failing shows a tile in the theme's colours with the product's initial. |
updatedAt | string | "" | maxLength: 40 | ISO instant for synchronized product update emphasis in Primetime. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type product-grid --major 1 --file params.json --context-file context.md
Example data
{
"products": [],
"updatedAt": ""
}
Layouts
This fullscreen card fills the whole screen in landscape or portrait and is not placed as a corner, chip, or strip.
Layouts: full. Forms: landscape, portrait.
Use this card
Add this card to a playlist as in Publish a card canvas, place it with the layouts and anchors and update its data as in Write live values.