TableState

@RememberInComposition
constructor(initialSelectedRowIndices: Set<Int> = emptySet(), initialSortKeys: List<RowSorter.SortKey> = emptyList(), initialColumnLayout: TableColumnLayout? = null)

Parameters

initialSelectedRowIndices

the rows selected until the caller or the user moves the selection.

initialSortKeys

the order the rows are sorted in until the caller or the user sorts them again.

initialColumnLayout

the layout the columns start in; null holds none, leaving them in their declared layout.