TooltipTileSchema

@Serializable
@SerialName(value = "Tooltip")
data class TooltipTileSchema(val id: String, val events: SerializableImmutableList<EventSchema>?, val style: StyleSchema, val searchableTerms: SerializableImmutableList<String>?, val visibility: TileSchema.Visibility, val tiles: SerializableImmutableList<TileSchema>, val text: String, val position: TooltipTileSchema.Position, val spacing: Int?, val showCaret: Boolean, val maxWidth: Int?, val shape: ShapeSchema?, val contentColor: ColorSchema?, val containerColor: ColorSchema?) : TileSchema

Wraps tiles in a Material 3 TooltipBox that shows a PlainTooltip with text. The tooltip is driven entirely by the platform's own gestures (long press on touch, hover on pointer devices) through a remembered tooltip state — the server neither opens nor observes it.

Appearance: position maps onto the Compose TooltipAnchorPosition of the same name and spacing (dp) sets the gap from the anchor, defaulting to Material's own spacing when null. showCaret toggles the little pointer arrow, and maxWidth, shape, contentColor and containerColor each override the corresponding TooltipDefaults value when non-null.

Triggers dispatched: none. The tile emits no trigger of its own, so any events declared on it are never fired — wire events on the wrapped tiles instead.

Notes: style and visibility apply to the TooltipBox itself — that is, to the anchor — not to the tooltip surface, whose look is controlled by the fields above. Only plain tooltips are supported; there is no rich tooltip variant with a title and actions.

Constructors

Link copied to clipboard
constructor(id: String, events: SerializableImmutableList<EventSchema>?, style: StyleSchema, searchableTerms: SerializableImmutableList<String>?, visibility: TileSchema.Visibility, tiles: SerializableImmutableList<TileSchema>, text: String, position: TooltipTileSchema.Position, spacing: Int?, showCaret: Boolean, maxWidth: Int?, shape: ShapeSchema?, contentColor: ColorSchema?, containerColor: ColorSchema?)

Types

Link copied to clipboard

Properties

Link copied to clipboard
@SerialName(value = "containerColor")
val containerColor: ColorSchema?
Link copied to clipboard
@SerialName(value = "contentColor")
val contentColor: ColorSchema?
Link copied to clipboard
@SerialName(value = "events")
open override val events: SerializableImmutableList<EventSchema>?
Link copied to clipboard
@SerialName(value = "id")
open override val id: String
Link copied to clipboard
@SerialName(value = "maxWidth")
val maxWidth: Int?
Link copied to clipboard
@SerialName(value = "position")
val position: TooltipTileSchema.Position
Link copied to clipboard
@SerialName(value = "searchableTerms")
open override val searchableTerms: SerializableImmutableList<String>?
Link copied to clipboard
@SerialName(value = "shape")
val shape: ShapeSchema?
Link copied to clipboard
@SerialName(value = "showCaret")
val showCaret: Boolean
Link copied to clipboard
@SerialName(value = "spacing")
val spacing: Int?
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 = "tiles")
val tiles: SerializableImmutableList<TileSchema>
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