StyleCode Property: hrefBackground

hrefBackground

Enabled only for “hrefAspect”: “custom”.

Specifies the background color of the href element.

Applies to Type Default
assert
label
menu > entry
scalar > entry > value
summary > entry > value
table > column > value
color white

Examples

// Example: assert
myAssertion = false

{ hrefBackground: tomato }
show assert "My Assert" a1b1 with
  myAssertion

// Example: label
{ hrefBackground: tomato }
show label "My Label" a1b1

// Example: menu > entry
show menu "" a1b3 with
  "Section" { hrefBackground: tomato }

// Example: scalar > entry > value
myValue = 123

show scalar "My Scalar" a1b1 with
  myValue { value { hrefBackground: tomato } }

// Example: summary > entry > value
table Sales = with
  [| as Quantity, as NetAmount |]
  [| 10, 40 |]
  [| 2, 10 |]
  [| 1, 20 |]
    
show summary "My Summary" a1b3 with
  sum(Sales.Quantity) { value { hrefBackground: tomato } }
  sum(Sales.NetAmount)

// 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" a1c4 with
  Orders.Date { value { hrefBackground: tomato } }
  Orders.Quantity

User Contributed Notes
0 notes + add a note