Live card
Category: Events. Tags: Events and venues, Social and audience, Recognition.
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 | "Prize draw" | maxLength: 80 | The draw's name. |
revealSeconds | integer | 12 | minimum: 3; maximum: 120 | How long a fresh draw gets the reveal: the pulsing ring and the WINNER mark. |
Dynamic properties
| Name | Type | Default | Values and limits | Description |
|---|---|---|---|---|
round | string | "" | maxLength: 60 | The event or the stage of the draw, such as Spring Gala. |
draws | array | [] | maxItems: 200 | The draws in the order they were made; the last is the latest winner. at (an ISO time) is when the draw was made: a draw less than revealSeconds old gets the reveal. name is optional. |
draws[].ticket | string, integer | maxLength: 24; Required | ||
draws[].prize | string | maxLength: 80 | ||
draws[].name | string | maxLength: 60 | ||
draws[].at | string | maxLength: 40 | ||
remaining | array, null | null | maxItems: 60 | The prizes still to draw: strings, or objects with a count. Leave it out and the card shows no prizes panel; an empty list says all prizes are drawn. |
Example params
{
"theme": "neomustard"
}
screenrig card create --type raffle-draw --major 1 --file params.json --context-file context.md
Example data
{
"round": "",
"draws": [],
"remaining": null
}
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.