Live card
Category: Operations. Tags: Leaderboards and standings, Offices and workplaces, Stores.
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 | "Leaderboard" | maxLength: 60 | |
unit | string | "" | maxLength: 12 | Shown after scores, for example pts. |
show | integer | 10 | minimum: 3; maximum: 20 | |
highlight | string | "" | maxLength: 40 | An entry name to emphasise. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
entries | array | minItems: 1; maxItems: 50; Required | ||
entries[].name | string | minLength: 1; maxLength: 40; Required | ||
entries[].score | number | Required | ||
entries[].previousRank | integer, null | null | minimum: 1 | Last period's rank; null or absent marks the entry new. |
entries[].team | string | "" | maxLength: 40 | |
entries[].previousScore | number, null | null | The score before the latest change (Primetime counts from it to the new score); null or absent leaves the score as it is. | |
changedAt | string | "" | maxLength: 40 | ISO instant of the board's latest change. Primetime plays the change (rows swap on springs, scores count to their new values, a new number one is announced) from this instant; without it the board has no moment. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type leaderboard --major 1 --file params.json --context-file context.md
Example data
{
"entries": [
{
"name": "Example",
"score": 1
}
],
"changedAt": ""
}
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.