AddTiles

fun EventSchemaBuilderScope.AddTiles(id: String = randomId(), trigger: EventTrigger, groupingTileId: String, position: AddTilesEventSchema.InsertionPosition = insertAtEnd(), events: EventSchemaBuilderScope.() -> Unit = {}, tiles: TileSchemaBuilderScope.() -> Unit)

Appends tiles as children of the grouping tile identified by groupingTileId, at position, without rebuilding the rest of the screen. Does not consume incomingData. Dispatches onSuccess (no data) when the children were added; onFailure (carrying the thrown exception, logged) when no grouping tile carries groupingTileId, or it cannot hold children.

Parameters

id

Unique identifier of this event. Defaults to a random id.

trigger

Trigger that fires this event, built via EventTriggers.

groupingTileId

Id of the grouping tile (Column, Row, LazyColumn, etc) to append children to.

position

Where among the existing children to insert — insertAtStart, insertAtEnd, insertBeforeTile, insertAfterTile or insertAtIndex. Defaults to the end.

events

Child events chained after this one, wired to its triggers (onSuccess, onFailure).

tiles

Tiles appended as new children.