Price matrix card

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

List items in rows and sizes in columns, and place each price where the two meet. Use the same clear grid for coffee, taps, wine, dispensary weights and fuel, and show add-ons alongside.

Live card

This card is drawn in your browser by the same code the Players run, with sample data.

Category: Food and drink. Tags: Restaurants and cafes, Bars and pubs, 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

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
featuredItemstring""maxLength: 80Exact row name to feature in Primetime. Empty uses the first available badged row.
featuredColumninteger2minimum: 1; maximum: 6One-based featured size column in Primetime.
updatedAtstring""maxLength: 40ISO instant for synchronized price-change emphasis.

Example params

{
  "theme": "neomustard"
}
screenrig card create --type price-matrix --major 1 --file params.json --context-file context.md

Example data

{
  "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
    }
  ],
  "featuredItem": "",
  "featuredColumn": 2,
  "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.