StyleCode Property: cellBackground

🚧 Work in progress — This documents the redesigned dashboard layout system, which is still under active development and subject to change. It is not compatible with the older v1 dashboard tile system.

cellBackground

Specifies the background color of a cell in a show table.

Applies to Type Default
frame > entry > value
frame > header
frame > column > header
frame > column > value
table > column > append
table > column > prepend
table > column > value
color, default default
// Example: table > column > append
table Orders = with
  [| as Date, as Quantity |]
  [| date(2023,02,21), 150 |]
  [| date(2023,02,22), 250 |]

show table "My Table" { 1..4, 1..4 } with
  Orders.Date { append { cellBackground: "#FF6347" } }
  Orders.Quantity

// Example: table > column > prepend
table Orders = with
  [| as Date, as Quantity |]
  [| date(2023,02,21), 150 |]
  [| date(2023,02,22), 250 |]

show table "My Table" { 1..4, 1..4 } with
  Orders.Date { prepend { cellBackground: "#FF6347" } }
  Orders.Quantity

// Example: table > column > value
table Orders = with
  [| as Date, as Quantity |]
  [| date(2023,02,21), 150 |]
  [| date(2023,02,22), 250 |]

show table "My Table" { 1..4, 1..4 } with
  Orders.Date { value { cellBackground: "#FF6347" } }
  Orders.Quantity

User Contributed Notes
0 notes + add a note