ScrollColumn

fun EventSchemaBuilderScope.ScrollColumn(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, tileId: String, where: ScrollColumnTileEventSchema.Where, smoothly: Boolean = true)

Scrolls the Column or LazyColumn tile identified by tileId to where, by broadcasting a scroll command on the screen channel. smoothly chooses between an animated and an immediate jump. Does not consume incomingData. Dispatches onSuccess (no data) always, right after the command is broadcast — the broadcast is fire-and-forget, so this fires even when no tile carries tileId.

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 trigger (onSuccess).

tileId

Id of the Column/LazyColumn tile to scroll.

where

Scroll target — scrollColumnToTop, scrollColumnToBottom or scrollColumnTo (pixel offset in a Column, child index in a LazyColumn).

smoothly

Whether the scroll animates instead of jumping immediately. Defaults to true.