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
Link copied to clipboard
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
object TableDefaults
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
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 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