Package-level declarations

Types

Link copied to clipboard

Default no-op customization.

Link copied to clipboard

Side to pin columns to, relative to the layout direction.

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, val rowBlockContainerColor: Color = Color.Unspecified, val rowSelectedIndicatorColor: Color = Color.Unspecified, val dividerColor: Color = Color.Unspecified, val pinnedDividerColor: Color = Color.Unspecified, val borderColor: Color = Color.Unspecified, val focusIndicatorColor: Color = Color.Unspecified, val hoverColor: Color = Color.Unspecified, val groupContentColor: Color = Color.Unspecified, val stickyGroupContainerColor: Color = Color.Unspecified, val headerSortIconActiveColor: Color = Color.Unspecified, val headerFocusIndicatorColor: Color = Color.Unspecified)

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 rowBlockSpacing: Dp = 8.dp, val columnResizeHandleWidth: Dp = defaultColumnResizeHandleWidth(), val headerIconTargetSize: Dp = defaultHeaderIconTargetSize(), val columnDragHandleSize: Dp = 24.dp, val selectionIndicatorWidth: Dp = 3.dp, val cellHorizontalPadding: Dp = 8.dp, val headerIconSpacing: Dp = 6.dp, val dragHandleIconSize: Dp = 16.dp, val focusIndicatorWidth: Dp = 2.dp, val pinnedColumnShadowWidth: Dp = 6.dp, val dragElevation: Dp = 8.dp, val fastFilterRowHeight: Dp = 40.dp, val scaleWithFontSize: Boolean = true)

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

How much the table animates: rows moving after a sort or a reorder, the header and fast filters sliding in, the lift of a dragged row or column, the fade of pinned-column shadows.

Link copied to clipboard
data class TableRowContext<T : Any, C>(val item: T, val index: Int, val isSelected: Boolean, val isStriped: Boolean, val isInRowBlock: 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 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.Start, 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, val showColumnMenuButton: Boolean = false, val motion: TableMotion = TableMotion.System, val pinnedStartCount: Int = 0, val pinnedEndCount: Int = 0)

Table behavior settings

Link copied to clipboard
data class TableTypography(val header: TextStyle, val body: TextStyle, val footer: TextStyle, val groupHeader: TextStyle)

Text styles of the table rows, applied with ProvideTextStyle so cell content that reads LocalTextStyle picks them up. A cell style's textStyle still merges over body.

Properties

Link copied to clipboard

Interaction lock used when row reorder mode is active.

Functions

Link copied to clipboard

Whether this setting turns animations off on the current device.