StyleCode Property: hrefTarget
hrefTarget
Specifies if clicking on the href element opens a new browser’ tab (“blank”) or not (“auto”).
Applies to | Type | Default |
---|---|---|
assert label logo menu > entry scalar > entry > value summary > entry > value table > column > value |
auto , blank |
auto |
Examples
// Example: assert
myAssertion = false
{ hrefTarget: blank }
show assert "My Assert" a1b1 with
myAssertion
// Example: label
{ hrefTarget: blank }
show label "My Label" a1b1
// Example: logo
{ hrefTarget: blank }
show logo "" a1b3
// Example: menu > entry
show menu "" a1b3 with
"Section" { hrefTarget: blank }
// Example: scalar > entry > value
myValue = 123
show scalar "My Scalar" a1b1 with
myValue { value { hrefTarget: blank } }
// 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 { hrefTarget: blank } }
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 { hrefTarget: blank } }
Orders.Quantity