revealIndex

fun revealIndex(index: Int): Boolean

Brings the row at index into view and returns whether it was reached.

Revealing is a gesture rather than a declaration: it scrolls where it is called and leaves nothing behind, so no later pass scrolls back and where the user scrolls afterwards stands.

A row is revealed once the list holds it, which is what an effect keyed on the items runs after: the rows a click declares reach the list on the composition that click triggers.

false means nothing was revealed: no list is bound, or the items the list currently holds have no such row. true means the list was asked to show it, which scrolls the pane the list is in; a list in no scroll pane has nowhere to scroll.

Return

whether the list holds that row and was scrolled to it.

Parameters

index

the row to bring into view, as its position among the items declared for the list - the same index selectedIndices names a row by.

See also