Text

@ObjCName(name = "TeyaRowElementText", exact = true)
data class Text(val text: String, val bold: Boolean = false, val align: Align = Align.Left) : RowElement

Represents a text element that can be displayed within a receipt row.

This class is used as part of the RowElement hierarchy to define textual content for receipts. The text can be styled with options for bold formatting and alignment.

Constructors

Link copied to clipboard
constructor(text: String, bold: Boolean = false, align: Align = Align.Left)

Properties

Link copied to clipboard

Specifies the horizontal alignment of the text. Default is Align.Left.

Link copied to clipboard
val bold: Boolean = false

Indicates whether the text should be displayed in bold. Default is false.

Link copied to clipboard

The content of the text element.