FlowRowTileSchema

@Serializable
@SerialName(value = "FlowRow")
data class FlowRowTileSchema(val id: String, val tiles: SerializableImmutableList<TileSchema>, val events: SerializableImmutableList<EventSchema>?, val style: StyleSchema, val searchableTerms: SerializableImmutableList<String>?, val filterChildrenByTerm: String?, val visibility: TileSchema.Visibility, val horizontalArrangement: ArrangementSchema.Horizontal = ArrangementSchema.Horizontal.Start, val verticalArrangement: ArrangementSchema.Vertical = ArrangementSchema.Vertical.Top, val maxItemsInEachRow: Int = Int.MAX_VALUE) : TileSchema

Renders a Compose FlowRow laying its tiles out horizontally and wrapping onto new lines when they no longer fit. horizontalArrangement spaces items within a line, verticalArrangement spaces the lines themselves, and maxItemsInEachRow caps how many children a single line may hold (defaults to unlimited).

Child scope: the tile publishes its FlowRowScope as a CompositionLocal (and clears the row and lazy-item scopes), so children can use flow-row scope modifiers such as weight and fillMaxRowHeight.

Filtering: when filterChildrenByTerm is non-null and non-empty, only children whose searchableTerms contain that term (case-insensitive, substring match) are rendered. Children without searchableTerms are filtered out.

Triggers dispatched:

  • OnDisplayEventTrigger — fired once when the tile enters composition (keyed by tile id).

  • OnClickEventTrigger — fired when the flow row is tapped, but only if an OnClick event is declared on this tile.

Notes: the tile is never scrollable and composes every child eagerly.

Constructors

Link copied to clipboard
constructor(id: String, tiles: SerializableImmutableList<TileSchema>, events: SerializableImmutableList<EventSchema>?, style: StyleSchema, searchableTerms: SerializableImmutableList<String>?, filterChildrenByTerm: String?, visibility: TileSchema.Visibility, horizontalArrangement: ArrangementSchema.Horizontal = ArrangementSchema.Horizontal.Start, verticalArrangement: ArrangementSchema.Vertical = ArrangementSchema.Vertical.Top, maxItemsInEachRow: Int = Int.MAX_VALUE)

Properties

Link copied to clipboard
@SerialName(value = "events")
open override val events: SerializableImmutableList<EventSchema>?
Link copied to clipboard
@SerialName(value = "filterChildrenByTerm")
val filterChildrenByTerm: String?
Link copied to clipboard
@SerialName(value = "horizontalArrangement")
val horizontalArrangement: ArrangementSchema.Horizontal
Link copied to clipboard
@SerialName(value = "id")
open override val id: String
Link copied to clipboard
@SerialName(value = "maxItemsInEachRow")
val maxItemsInEachRow: Int
Link copied to clipboard
@SerialName(value = "searchableTerms")
open override val searchableTerms: SerializableImmutableList<String>?
Link copied to clipboard
@SerialName(value = "style")
open override val style: StyleSchema
Link copied to clipboard
@SerialName(value = "tiles")
val tiles: SerializableImmutableList<TileSchema>
Link copied to clipboard
@SerialName(value = "verticalArrangement")
val verticalArrangement: ArrangementSchema.Vertical
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