Package-level declarations

Types

Link copied to clipboard

Default no-op customization.

Link copied to clipboard
typealias FixedSide = PinnedSide

Side to fix columns to.

Link copied to clipboard

Side to pin columns to.

Link copied to clipboard

Row height behavior.

Link copied to clipboard

Row selection behavior.

Link copied to clipboard
data class TableCellContext<T : Any, C>(val row: TableRowContext<T, C>, val column: C)
Link copied to clipboard
data class TableCellStyle(val modifier: Modifier = Modifier, val background: Color = Color.Unspecified, val contentColor: Color = Color.Unspecified, val textStyle: TextStyle? = null, val alignment: Alignment = Alignment.CenterStart)
Link copied to clipboard
data class TableColors(val headerContainerColor: Color, val headerContentColor: Color, val rowContainerColor: Color, val rowSelectedContainerColor: Color, val stripedRowContainerColor: Color, val groupContainerColor: Color, val footerContainerColor: Color, val footerContentColor: Color)

Color palette used by the table header and rows.

Link copied to clipboard

Centralized customization entry-point for table row and cell appearance/behavior. Implementors can compute styles based on row/cell context (item, selection, grouping, etc.).

Link copied to clipboard
Link copied to clipboard
data class TableDimensions(val defaultColumnWidth: Dp, val rowHeight: Dp, val headerHeight: Dp, val footerHeight: Dp, val dividerThickness: Dp, val pinnedColumnDividerThickness: Dp, val fixedColumnDividerThickness: Dp = pinnedColumnDividerThickness)

Common size constants and defaults used by the table layout.

Link copied to clipboard
data class TableGroupContext<T : Any, C>(val column: C, val value: Any?)
Link copied to clipboard
data class TableRowContext<T : Any, C>(val item: T, val index: Int, val isSelected: Boolean, val isStriped: Boolean, val isGroup: Boolean, val isDeleted: Boolean)
Link copied to clipboard
data class TableRowStyle(val modifier: Modifier = Modifier, val containerColor: Color = Color.Unspecified, val contentColor: Color = Color.Unspecified, val elevation: Dp = Dp.Unspecified, val shape: Shape? = RectangleShape, val border: BorderStroke? = null)
Link copied to clipboard
data class TableSettings(val rowReorderEnabled: Boolean = false, val isDragEnabled: Boolean = rowReorderEnabled, val autoApplyFilters: Boolean = true, val showFastFilters: Boolean = false, val autoFilterDebounce: Long = 300, val stripedRows: Boolean = false, val showActiveFiltersHeader: Boolean = false, val selectionMode: SelectionMode = SelectionMode.None, val rowHeightMode: RowHeightMode = RowHeightMode.Fixed, val groupContentAlignment: Alignment = Alignment.CenterStart, val enableDragToScroll: Boolean = getPlatform().isMobile(), val pinnedColumnsCount: Int = 0, val pinnedColumnsSide: PinnedSide = PinnedSide.Left, val fixedColumnsCount: Int = pinnedColumnsCount, val fixedColumnsSide: FixedSide = when (pinnedColumnsSide) { PinnedSide.Left -> FixedSide.Left PinnedSide.Right -> FixedSide.Right }, val editingEnabled: Boolean = false, val showFooter: Boolean = false, val footerPinned: Boolean = true, val enableTextSelection: Boolean = false, val showVerticalDividers: Boolean = true, val showRowDividers: Boolean = true, val showHeaderDivider: Boolean = true, val showFastFiltersDivider: Boolean = true)

Table behavior settings

Properties

Link copied to clipboard

Interaction lock used when row reorder mode is active.

Link copied to clipboard

Effective row reorder flag supporting both the new and deprecated setting names.