SimpleTextTileSchema

@Serializable
@SerialName(value = "Text")
data class SimpleTextTileSchema(val id: String, val events: SerializableImmutableList<EventSchema>?, val style: StyleSchema, val searchableTerms: SerializableImmutableList<String>?, val visibility: TileSchema.Visibility, val text: String, val color: ColorSchema?, val typography: TypographySchema?, val autoSize: AutoSizeSchema?, val fontSize: Float?, val fontStyle: FontStyleSchema?, val fontWeight: FontWeightSchema?, val fontFamily: FontFamilySchema?, val letterSpacing: Float?, val textDecoration: TextDecorationSchema?, val textAlign: TextAlignSchema?, val lineHeight: Float?, val overflow: TextOverflowSchema?, val softWrap: Boolean?, val maxLines: Int?, val minLines: Int?) : TileSchema

Renders a Compose Text showing text.

Text style: typography provides the base TextStyle, falling back to the ambient LocalTextStyle when null. Every other field overrides one property on top of that base and is ignored when null: color, autoSize, fontSize (sp), fontStyle, fontWeight, fontFamily, letterSpacing (sp), textDecoration, textAlign and lineHeight (sp).

Layout: overflow defaults to clipping, softWrap to true, maxLines to unbounded and minLines to 1.

Triggers dispatched: none. The tile emits no trigger and is not clickable, so any events declared on it are never fired — wrap it in a Box or Card when you need tap handling.

Notes: the tile renders plain text only — no inline annotations, links or markdown. Wrap it in a SelectionContainer to make the text selectable.

Constructors

Link copied to clipboard
constructor(id: String, events: SerializableImmutableList<EventSchema>?, style: StyleSchema, searchableTerms: SerializableImmutableList<String>?, visibility: TileSchema.Visibility, text: String, color: ColorSchema?, typography: TypographySchema?, autoSize: AutoSizeSchema?, fontSize: Float?, fontStyle: FontStyleSchema?, fontWeight: FontWeightSchema?, fontFamily: FontFamilySchema?, letterSpacing: Float?, textDecoration: TextDecorationSchema?, textAlign: TextAlignSchema?, lineHeight: Float?, overflow: TextOverflowSchema?, softWrap: Boolean?, maxLines: Int?, minLines: Int?)

Properties

Link copied to clipboard
@SerialName(value = "autoSize")
val autoSize: AutoSizeSchema?
Link copied to clipboard
@SerialName(value = "color")
val color: ColorSchema?
Link copied to clipboard
@SerialName(value = "events")
open override val events: SerializableImmutableList<EventSchema>?
Link copied to clipboard
@SerialName(value = "fontFamily")
val fontFamily: FontFamilySchema?
Link copied to clipboard
@SerialName(value = "fontSize")
val fontSize: Float?
Link copied to clipboard
@SerialName(value = "fontStyle")
val fontStyle: FontStyleSchema?
Link copied to clipboard
@SerialName(value = "fontWeight")
val fontWeight: FontWeightSchema?
Link copied to clipboard
@SerialName(value = "id")
open override val id: String
Link copied to clipboard
@SerialName(value = "letterSpacing")
val letterSpacing: Float?
Link copied to clipboard
@SerialName(value = "lineHeight")
val lineHeight: Float?
Link copied to clipboard
@SerialName(value = "maxLines")
val maxLines: Int?
Link copied to clipboard
@SerialName(value = "minLines")
val minLines: Int?
Link copied to clipboard
@SerialName(value = "overflow")
val overflow: TextOverflowSchema?
Link copied to clipboard
@SerialName(value = "searchableTerms")
open override val searchableTerms: SerializableImmutableList<String>?
Link copied to clipboard
@SerialName(value = "softWrap")
val softWrap: Boolean?
Link copied to clipboard
@SerialName(value = "style")
open override val style: StyleSchema
Link copied to clipboard
@SerialName(value = "text")
val text: String
Link copied to clipboard
@SerialName(value = "textAlign")
val textAlign: TextAlignSchema?
Link copied to clipboard
@SerialName(value = "textDecoration")
val textDecoration: TextDecorationSchema?
Link copied to clipboard
@SerialName(value = "typography")
val typography: TypographySchema?
Link copied to clipboard
@SerialName(value = "visibility")
open override val visibility: TileSchema.Visibility

Functions

Link copied to clipboard
open fun isGone(): Boolean
Link copied to clipboard
open fun isVisible(): Boolean