Leaderboards, schedules and price lists appear as a clean table with formatted columns, ranks and a highlighted row for clear reading across a room. It fills the screen, sits in the middle, tucks into a corner, runs as one line or as a band along an edge. You set the title, the columns and rows, the highlighted row and its colour, the leader band, the sort order, and rows per page and page timing.
Live card
Category: Operations. Tags: Charts and gauges, Numbers and metrics, Offices and workplaces.
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 | "" | maxLength: 60 | |
columns | array | minItems: 1; maxItems: 8; Required | ||
columns[].key | string | maxLength: 40; Required | ||
columns[].label | string | maxLength: 30; Required | ||
columns[].align | string | "auto" | "auto", "left", "right", "center" | auto puts numbers right and text left. |
columns[].format | string | "text" | "text", "number", "percent", "currency", "delta" | percent shows the number as given with a % sign (12.5 -> 12.5%). |
columns[].decimals | integer, null | null | minimum: 0; maximum: 4 | null: number 0, percent 1, currency 2, delta 1. |
columns[].width | number, null | null | minimum: 0.2; maximum: 10 | Relative width; null sizes the column to its content. |
columns[].priority | integer, null | null | minimum: 1; maximum: 8 | Which columns a small box keeps, 1 first. A center card with more than three columns keeps the first and the most important of the rest (the sort column, else the lowest priority number). |
highlight | integer, string, null | null | A row index after sorting (0 is the first), or the first column's value. | |
striped | boolean | true | ||
showRank | boolean | false | ||
sortBy | string | "" | maxLength: 40 | |
sortDesc | boolean | false | ||
maxRows | integer | 0 | minimum: 0; maximum: 50 | Rows per page; 0 shows as many as fit. Pages turn on the wall clock. |
pageSeconds | integer | 10 | minimum: 5; maximum: 120 | |
currency | string | "$" | maxLength: 4 | |
leader | boolean | false | Show the first row as a leader band above the table: its rank, its name large and its key figure as the hero. | |
highlightTone | string, null | null | pattern: "^(#[0-9A-Fa-f]{6}([0-9A-Fa-f]{2})?|base|text|muted|faint|accent|accent2|accent3|onAccent|surface|surfaceStrong|stroke|highlight|danger|warning|success|cool|warm)$" | A palette key or a #RRGGBB colour for the highlighted row. null: the theme's accent. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
rows | array | minItems: 1; maxItems: 50; Required |
Example params
{
"theme": "neomustard",
"columns": [
{
"key": "Example",
"label": "Example"
}
]
}
screenrig card create --type table --major 1 --file params.json --context-file context.md
Example data
{
"rows": [
{}
]
}
Layouts
This core card fits every layout: full screen, center, wide, corner, chip, strip, or any free rectangle.
Layouts: full, free, center, wide, corner, chip, strip. Forms: landscape, portrait, square, strip.
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.