Live card
Category: Schools. Tags: Schools and campuses, Leaderboards and standings, Recognition.
Data and privacy
This card uses its configured properties and live card data.
A class is a name, never a student.
Properties
For theme, background, accent, colour overrides and position, see Common properties.
Static properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
format | string | "number" | "number", "percent", "money" | How values show: a number with its unit, a percentage or an amount of money. |
unit | string | "" | maxLength: 12 | The unit after a number, for example min or books. |
currency | string | "$" | maxLength: 3 | The symbol before an amount of money. |
scaleFrom | number | 0 | minimum: 0; maximum: 99999999 | Where the bars start, so close values (attendance of 94 to 98 percent) still show a difference. |
showTotal | boolean | true | Show the total of all classes (the average for percentages) and the countdown. | |
timeZone | string, null | null |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
title | string | "Class challenge" | maxLength: 40 | The heading, for example Reading challenge. |
classes | array | [] | minItems: 0; maxItems: 10 | The classes and their values. Rank, bar lengths and the leader come from the values. A class is a name, never a student. |
classes[].name | string | minLength: 1; maxLength: 48; Required | ||
classes[].value | number | minimum: 0; maximum: 99999999; Required | ||
classes[].color | string | pattern: "^#[0-9A-Fa-f]{6}$" | The class colour as #RRGGBB. Absent, the class takes a colour from the theme. | |
classes[].prevValue | number | minimum: 0; maximum: 99999999 | The class's value before the latest update (Primetime). Until updatedAt the board shows these; from it the bars race to the new values and a change of leader is a moment. | |
goal | number | 0 | minimum: 0; maximum: 99999999 | The target. 0 sets none. |
goalFor | string | "each" | "each", "total" | each: every class races to the goal. total: the classes reach it together. |
endsAt | string | "" | maxLength: 40 | ISO 8601 instant the challenge ends (a time without an offset is wall time in the screen's zone). Empty shows no countdown. |
updatedAt | string | "" | maxLength: 40 | ISO 8601 instant of the latest score update, shared by every screen (Primetime). The race and a change of leader play from it. Empty plays nothing. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type class-challenge --major 1 --file params.json --context-file context.md
Example data
{
"title": "Class challenge",
"classes": [],
"goal": 0,
"goalFor": "each",
"endsAt": "",
"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.