Package-level declarations

Types

Link copied to clipboard
data class ContextMenuState<T : Any>(val visible: Boolean = false, val position: Offset = Offset.Zero, val item: T? = null)

State holder for table row context menu.

Functions

Link copied to clipboard
suspend fun <T : Any, C, E> ensureCellFullyVisible(rowIndex: Int, targetColIndex: Int, targetColKey: C, visibleColumns: List<ColumnSpec<T, C, E>>, state: TableState<C>, verticalState: LazyListState, horizontalState: ScrollState, density: Density, movement: Int = 0)

Ensure that the specified cell (row + column) becomes fully visible.

Link copied to clipboard
suspend fun <T : Any, C, E> ensureColumnFullyVisible(targetColIndex: Int, targetColKey: C, visibleColumns: List<ColumnSpec<T, C, E>>, state: TableState<C>, horizontalState: ScrollState, density: Density)

Ensure that the given column becomes fully visible horizontally.

Link copied to clipboard
suspend fun <C> ensureRowFullyVisible(index: Int, verticalState: LazyListState, state: TableState<C>, density: Density, movement: Int = 0)

Ensure that the given index row becomes fully visible in the viewport (supports dynamic row heights).