Combo meals card

The numbered meal deals of a quick-service board: photo, what is in each combo, the price with the saving, the upsize step and the calories.

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

Previews

Combo meals
Canvas
Combo meals
Corner
Combo meals
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"Combo meals"maxLength: 40
currencystring"$"maxLength: 3
decimalsnumber, string"auto""auto", 0, 1, 2auto uses whole numbers when every price is whole.
perPageinteger0minimum: 0; maximum: 8Combos on a page. 0 sets itself: four across in landscape, a column in portrait.
pageSecondsnumber10minimum: 5; maximum: 120How long a page stays when the combos do not fit one page.
footnotestring""maxLength: 120A line along the foot, for example Prices include tax.

Dynamic properties

NameTypeDefaultValues and limitsDescription
combosarray[{"name":"Smoky stack","items":["Double smoky burger","Large fries","Drink"],"price":10.99,"was":13.47,"upsize":{"label":"Large","add":1.2},"kcal":1240,"badge":"Popular"},{"name":"Crispy chicken","items":["Crispy chicken sandwich","Fries","Drink"],"price":9.49,"was":11.97,"upsize":{"label":"Large","add":1.2},"kcal":1080},{"name":"Garden bowl","items":["Grain bowl","Fruit cup","Drink"],"price":11.25,"was":13.5,"upsize":{"label":"Large","add":1.5},"kcal":760},{"name":"Little one","items":["Mini burger","Apple slices","Juice box"],"price":6.25,"was":7.75,"kcal":520}]maxItems: 24The combos, in board order.
combos[].numberstringmaxLength: 4The number on the board. Empty counts 1, 2, 3.
combos[].namestringminLength: 1; maxLength: 120; Required
combos[].itemsarraymaxItems: 6What is in the combo, one line each.
combos[].pricenumber, nullminimum: 0The combo price.
combos[].wasnumber, nullminimum: 0The same items bought one by one; the saving is worked out.
combos[].upsizeobject, nulladditionalProperties: falseThe upsize step, for example Large +1.20.
combos[].upsize.labelstringmaxLength: 24
combos[].upsize.addnumber, nullminimum: 0
combos[].kcalnumber, nullminimum: 0
combos[].imagestringmaxLength: 200A project media reference (media:<id>). Empty shows the theme's tile with a food icon.
combos[].badgestringmaxLength: 16A short mark on the photo, for example Popular.
combos[].soldOutbooleanfalse

Canvas example

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

{
  "id": "combo-meals",
  "primitive": "card",
  "card": "combo-meals",
  "major": 1,
  "params": {
    "theme": "neomustard"
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "combo-meals-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/combo-meals-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"combos":[{"name":"Smoky stack","items":["Double smoky burger","Large fries","Drink"],"price":10.99,"was":13.47,"upsize":{"label":"Large","add":1.2},"kcal":1240,"badge":"Popular"},{"name":"Crispy chicken","items":["Crispy chicken sandwich","Fries","Drink"],"price":9.49,"was":11.97,"upsize":{"label":"Large","add":1.2},"kcal":1080},{"name":"Garden bowl","items":["Grain bowl","Fruit cup","Drink"],"price":11.25,"was":13.5,"upsize":{"label":"Large","add":1.5},"kcal":760},{"name":"Little one","items":["Mini burger","Apple slices","Juice box"],"price":6.25,"was":7.75,"kcal":520}]}}'