ReplaceTiles
fun EventSchemaBuilderScope.ReplaceTiles(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, groupingTileId: String, tiles: TileSchemaBuilderScope.() -> Unit)
Swaps the whole children list of the grouping tile identified by groupingTileId for tiles. Does not consume incomingData. Dispatches onSuccess (no data) when the children were replaced; onFailure (carrying the thrown exception, logged) when no grouping tile carries groupingTileId.
Parameters
id
Unique identifier of this event. Defaults to a random id.
trigger
Trigger that fires this event, built via EventTriggers.
events
Child events chained after this one, wired to its triggers (onSuccess, onFailure).
groupingTileId
Id of the grouping tile whose children are replaced.
tiles
New tiles that replace the whole children list.