StyleCode Property: href v2

🚧 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.

href

When set, indicates that clicking the element should open another page. Only supports ‘http://’ and ‘https://’ links ; those starting with ~/ will be prefixed with https://go.lokad.com/<ACCOUNT> automatically.

Applies to Type Default
button
frame > column > entry > value
frame > columns > column > value
region > footer
summary > entry > value
table > column > value
Text ``

Examples

// Example: button
show button "My Button" { 1..2, 1..2 ; href: ""~~/home"" }

// Example: region > footer
show region { 1..6, 1..10 } with
  footer "My region's footer" { href: ""~~/home"" }

// Example: summary > entry > value
table Sales = with
  [| as Quantity, as NetAmount |]
  [| 10, 40 |]
  [| 2, 10 |]
  [| 1, 20 |]

show summary "My Summary" { 1..3, 1..3 } with
  sum(Sales.Quantity) { value { href: ""~~/home"" } }
  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" { 1..4, 1..4 } with
  Orders.Date { value { href: ""~~/home"" } }
  Orders.Quantity

User Contributed Notes
0 notes + add a note