Price matrix card

Items down the side, sizes across the top and a price where they meet: coffee, taps, wine, dispensary weights and fuel, with add-ons.

Category: Food and drink. Tags: Restaurants and cafes, Bars and pubs, Stores, Prices and rates.

Previews

Price matrix
Canvas
Price matrix
Corner
Price matrix
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait, square, strip.

Card views, themes and publishing. Browse the gallery.

Data and privacy

This card uses its configured properties and live card data.

Properties

For theme, background, accent and position, see Common properties.

Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.

Static properties

NameTypeDefaultValues and limitsDescription
titlestring"Coffee"maxLength: 40
metaLabelstring""maxLength: 16The head of the extra column, for example ABV.
glyphstring"cup""none", "cup", "glass"A cup or glass over each size that grows with it.
currencystring"$"maxLength: 3
decimalsnumber, string"auto""auto", 0, 1, 2, 3auto uses whole numbers when every price is whole.
perPageinteger0minimum: 0; maximum: 20Rows on a page. 0 sets itself from the room.
pageSecondsnumber10minimum: 5; maximum: 120
footnotestring""maxLength: 120

Dynamic properties

NameTypeDefaultValues and limitsDescription
columnsarray["Small","Medium","Large"]minItems: 1; maxItems: 6The sizes across the top: S/M/L, 12/16/20 oz, pint/half, glass/bottle, 1g/3.5g/28g, cash/credit.
sectionsarray[{"name":"Espresso bar","items":[{"name":"Espresso","prices":[3.25,3.75,null],"note":"Double shot"},{"name":"Americano","prices":[3.5,4.0,4.5]},{"name":"Flat white","prices":[4.5,5.0,5.5],"note":"Whole or oat milk","badge":"House"},{"name":"Latte","prices":[4.75,5.25,5.75],"note":"Vanilla, caramel or maple"}]},{"name":"Cold","items":[{"name":"Iced latte","prices":[5.0,5.5,6.0]},{"name":"Cold brew","prices":[4.5,5.0,5.5],"note":"Steeped 18 hours"}]}]maxItems: 12Groups of items down the side; a group's name heads its first row.
sections[].namestringmaxLength: 80
sections[].itemsarraymaxItems: 40; Required
sections[].items[].namestringminLength: 1; maxLength: 80; Required
sections[].items[].notestringmaxLength: 160A line under the name.
sections[].items[].metastringmaxLength: 24The extra column: ABV, THC, origin.
sections[].items[].badgestringmaxLength: 16
sections[].items[].pricesarraymaxItems: 6One price per column; empty for a size that is not offered.
sections[].items[].soldOutbooleanfalse
addOnsarray[{"name":"Oat milk","price":0.7},{"name":"Extra shot","price":1},{"name":"Syrup","price":0.5}]maxItems: 8Extras in a row under the table.
addOns[].namestringmaxLength: 40; Required
addOns[].pricenumber, null

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "price-matrix",
  "primitive": "card",
  "card": "price-matrix",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "price-matrix-main"
}

Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.

curl --request PUT "https://api.screenrig.ai/api/card-data/price-matrix-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"columns":["Small","Medium","Large"],"sections":[{"name":"Espresso bar","items":[{"name":"Espresso","prices":[3.25,3.75,null],"note":"Double shot"},{"name":"Americano","prices":[3.5,4.0,4.5]},{"name":"Flat white","prices":[4.5,5.0,5.5],"note":"Whole or oat milk","badge":"House"},{"name":"Latte","prices":[4.75,5.25,5.75],"note":"Vanilla, caramel or maple"}]},{"name":"Cold","items":[{"name":"Iced latte","prices":[5.0,5.5,6.0]},{"name":"Cold brew","prices":[4.5,5.0,5.5],"note":"Steeped 18 hours"}]}],"addOns":[{"name":"Oat milk","price":0.7},{"name":"Extra shot","price":1},{"name":"Syrup","price":0.5}]}}'