Data table card

A clean signage table for leaderboards, schedules and price lists: formatted columns, a highlighted row, ranks, and pages that turn by themselves.

Category: Operations. Tags: Charts and gauges, Numbers and metrics, Offices and workplaces.

Previews

Data table
Canvas
Data table
Corner
Data table
Chip

Views and forms

Views: canvas, corner, chip. Canvas forms: landscape, portrait.

Card views, themes and publishing. Browse the gallery.

Data and privacy

This card uses its configured properties and live card data.

Properties

For theme, background, accent and position, see Common properties.

Set static properties in params. Bind data to a project card data key for live values; that document holds only dynamic properties. Without a data key, put the complete configuration in params. Nested rows describe the contents of their parent property.

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.
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

Dynamic properties

NameTypeDefaultValues and limitsDescription
rowsarrayminItems: 1; maxItems: 50; Required

Canvas example

Add this item to a playlist page’s primitives. Publish the playlist and assign a screen.

{
  "id": "table",
  "primitive": "card",
  "card": "table",
  "major": 1,
  "params": {
    "theme": "neomustard",
    "columns": [
      {
        "key": "Example",
        "label": "Example"
      }
    ]
  },
  "rect": {
    "x": 0,
    "y": 0,
    "width": 1920,
    "height": 1080
  },
  "layer": 0,
  "content_fit": "fill",
  "data": "table-main"
}

Write live data

Create this document before showing the card, then replace it to update the screen without republishing. Use the same project as the playlist. Supply your API authorization through the environment; see API authentication.

curl --request PUT "https://api.screenrig.ai/api/card-data/table-main" \
  --header "Authorization: Bearer $SCREENRIG_TOKEN" \
  --header "ScreenRig-Project: $SCREENRIG_PROJECT" \
  --header "Content-Type: application/json" \
  --data '{"document":{"rows":[{}]}}'