Live card
Category: Food and drink. Tags: Restaurants and cafes, 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 | "Combo meals" | maxLength: 40 | |
currency | string | "$" | maxLength: 3 | |
decimals | number, string | "auto" | "auto", 0, 1, 2 | auto uses whole numbers when every price is whole. |
perPage | integer | 0 | minimum: 0; maximum: 8 | Combos on a page. 0 sets itself: four across in landscape, a column in portrait. |
pageSeconds | number | 10 | minimum: 5; maximum: 120 | How long a page stays when the combos do not fit one page. |
footnote | string | "" | maxLength: 120 | A line along the foot, for example Prices include tax. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
combos | array | [{"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: 24 | The combos, in board order. |
combos[].number | string | maxLength: 4 | The number on the board. Empty counts 1, 2, 3. | |
combos[].name | string | minLength: 1; maxLength: 120; Required | ||
combos[].items | array | maxItems: 6 | What is in the combo, one line each. | |
combos[].price | number, null | minimum: 0 | The combo price. | |
combos[].was | number, null | minimum: 0 | The same items bought one by one; the saving is worked out. | |
combos[].upsize | object, null | additionalProperties: false | The upsize step, for example Large +1.20. | |
combos[].upsize.label | string | maxLength: 24 | ||
combos[].upsize.add | number, null | minimum: 0 | ||
combos[].kcal | number, null | minimum: 0 | ||
combos[].image | string | maxLength: 200 | A project media reference (media:<id>). Empty shows the theme's tile with a food icon. | |
combos[].badge | string | maxLength: 16 | A short mark on the photo, for example Popular. | |
combos[].soldOut | boolean | false |
Example params
{
"theme": "neomustard"
}
screenrig card create --type combo-meals --major 1 --file params.json --context-file context.md
Example data
{
"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
}
]
}
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.