...

StyleCode Property: hrefAspect

hrefAspect

Specifies the aspect of the href element, either as a link, or a button with preset of colors.

For the more complex customization, use “custom” in conjunction with “hrefBackground”, “hrefBorder” and “hrefText”, that are otherwise without effect.

Applies to Type Default
assert
label
menu > entry
scalar > entry > value
summary > entry > value
table > column > value
link, white, blue, green, cyan, orange, red, custom link

Examples

// Example: assert
myAssertion = false

{ hrefAspect: blue }
show assert "My Assert" a1b1 with
  myAssertion

// Example: label
{ hrefAspect: blue }
show label "My Label" a1b1

// Example: menu > entry
show menu "" a1b3 with
  "Section" { hrefAspect: blue }

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

show scalar "My Scalar" a1b1 with
  myValue { value { hrefAspect: blue } }

// 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 { hrefAspect: blue } }
  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 { hrefAspect: blue } }
  Orders.Quantity

User Contributed Notes
0 notes + add a note