StyleCode Property: textAlign

textAlign

Specifies the horizontal text alignment in the text pipeline.

Applies toTypeDefault
label
menu > entry
scalar
table > column > append
table > column > header
table > column > prepend
table > column > value
left, right, center, justify, defaultdefault

Examples

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

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

// Example: scalar
{ textAlign: right }
show scalar "My Scalar" a1 tomato with
  sum(Quantity)

// Example: table > column > append
show table "My Table" a1c4 tomato with
  Orders.Date { append { textAlign: right } }
  Orders.Quantity

// Example: table > column > header
show table "My Table" a1c4 tomato with
  Orders.Date { header { textAlign: right } }
  Orders.Quantity

// Example: table > column > prepend
show table "My Table" a1c4 tomato with
  Orders.Date { prepend { textAlign: right } }
  Orders.Quantity

// Example: table > column > value
show table "My Table" a1c4 tomato with
  Orders.Date { value { textAlign: right } }
  Orders.Quantity