Data table card

Leaderboards, schedules and price lists in formatted columns, with ranks, a highlighted row and self-turning pages.

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

This card is drawn in your browser by the same code the Players run, with sample data.

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

NameTypeDefaultValues and limitsDescription
titlestring""maxLength: 60
columnsarrayminItems: 1; maxItems: 8; Required
columns[].keystringmaxLength: 40; Required
columns[].labelstringmaxLength: 30; Required
columns[].alignstring"auto""auto", "left", "right", "center"auto puts numbers right and text left.
columns[].formatstring"text""text", "number", "percent", "currency", "delta"percent shows the number as given with a % sign (12.5 -> 12.5%).
columns[].decimalsinteger, nullnullminimum: 0; maximum: 4null: number 0, percent 1, currency 2, delta 1.
columns[].widthnumber, nullnullminimum: 0.2; maximum: 10Relative width; null sizes the column to its content.
columns[].priorityinteger, nullnullminimum: 1; maximum: 8Which 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).
highlightinteger, string, nullnullA row index after sorting (0 is the first), or the first column's value.
stripedbooleantrue
showRankbooleanfalse
sortBystring""maxLength: 40
sortDescbooleanfalse
maxRowsinteger0minimum: 0; maximum: 50Rows per page; 0 shows as many as fit. Pages turn on the wall clock.
pageSecondsinteger10minimum: 5; maximum: 120
currencystring"$"maxLength: 4
leaderbooleanfalseShow the first row as a leader band above the table: its rank, its name large and its key figure as the hero.
highlightTonestring, nullnullpattern: "^(#[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

NameTypeDefaultValues and limitsDescription
rowsarrayminItems: 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.