RadioButtonTileSchema

@Serializable
@SerialName(value = "RadioButton")
data class RadioButtonTileSchema(val id: String, val events: SerializableImmutableList<EventSchema>?, val style: StyleSchema, val searchableTerms: SerializableImmutableList<String>?, val visibility: TileSchema.Visibility, val selected: Boolean, val enabled: Boolean, val groupId: String) : TileSchema

Renders a bare Material 3 RadioButton reflecting selected. enabled is forwarded to the composable. The tile draws only the radio circle — no label is rendered, so pair it with a SimpleText inside a Row when a caption is needed.

Grouping: tapping the button dispatches a RadioButtonTileGroupEvents.OnRadioSelected group event carrying this tile's id and groupId. Every radio holder whose groupId matches reacts by setting its own selected to id == selectedTileId, so mutual exclusion is handled entirely on the client — no server round trip and no UpdateTiles needed to clear the previously selected button. Radios with different groupId values are unaffected.

Triggers dispatched:

  • OnSelectEventTrigger — fired on the radio button that becomes selected. Tapping a radio that is already selected fires nothing; the radios that become deselected fire nothing either, since only the tapped tile dispatches triggers.

Value production: the holder exposes the current selected boolean under a caller-chosen key, so GetData / EvaluateData events can read this radio button by its id.

Constructors

Link copied to clipboard
constructor(id: String, events: SerializableImmutableList<EventSchema>?, style: StyleSchema, searchableTerms: SerializableImmutableList<String>?, visibility: TileSchema.Visibility, selected: Boolean, enabled: Boolean, groupId: String)

Properties

Link copied to clipboard
@SerialName(value = "enabled")
val enabled: Boolean
Link copied to clipboard
@SerialName(value = "events")
open override val events: SerializableImmutableList<EventSchema>?
Link copied to clipboard
@SerialName(value = "groupId")
val groupId: String
Link copied to clipboard
@SerialName(value = "id")
open override val id: String
Link copied to clipboard
@SerialName(value = "searchableTerms")
open override val searchableTerms: SerializableImmutableList<String>?
Link copied to clipboard
@SerialName(value = "selected")
val selected: Boolean
Link copied to clipboard
@SerialName(value = "style")
open override val style: StyleSchema
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