Prize draw card

The prize draw for a gala, fundraiser or staff party: the latest winning ticket as a big ticket with its prize, the ticket number rolling in when a new draw is written, the earlier draws and the prizes still to draw. Written to the data store by the organiser, one draw at a time.

Live card

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

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

NameTypeDefaultValues and limitsDescription
titlestring"Prize draw"maxLength: 80The draw's name.
revealSecondsinteger12minimum: 3; maximum: 120How long a fresh draw gets the reveal: the pulsing ring and the WINNER mark.

Dynamic properties

NameTypeDefaultValues and limitsDescription
roundstring""maxLength: 60The event or the stage of the draw, such as Spring Gala.
drawsarray[]maxItems: 200The 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[].ticketstring, integermaxLength: 24; Required
draws[].prizestringmaxLength: 80
draws[].namestringmaxLength: 60
draws[].atstringmaxLength: 40
remainingarray, nullnullmaxItems: 60The 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.