TableDimensions

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.

Constructors

Link copied to clipboard
constructor(defaultColumnWidth: Dp, rowHeight: Dp, headerHeight: Dp, footerHeight: Dp, dividerThickness: Dp, pinnedColumnDividerThickness: Dp, rowBlockSpacing: Dp = 8.dp, columnResizeHandleWidth: Dp = defaultColumnResizeHandleWidth(), headerIconTargetSize: Dp = defaultHeaderIconTargetSize(), columnDragHandleSize: Dp = 24.dp, selectionIndicatorWidth: Dp = 3.dp, cellHorizontalPadding: Dp = 8.dp, headerIconSpacing: Dp = 6.dp, dragHandleIconSize: Dp = 16.dp, focusIndicatorWidth: Dp = 2.dp, pinnedColumnShadowWidth: Dp = 6.dp, dragElevation: Dp = 8.dp, fastFilterRowHeight: Dp = 40.dp, scaleWithFontSize: Boolean = true)

Properties

Link copied to clipboard

Horizontal padding around the header title and sort icon.

Link copied to clipboard

Pointer target of the column drag handle shown while the header is hovered.

Link copied to clipboard

Width of the pointer target that resizes a column, centred on the column boundary; the visible line stays as thin as the divider. Defaults to 24.dp on touch platforms and 8.dp elsewhere.

Link copied to clipboard
Link copied to clipboard

Thickness of dividers. Should be at least 1.dp.

Link copied to clipboard

Shadow elevation of a row or column while it is dragged.

Link copied to clipboard

Glyph size of the column drag handle; columnDragHandleSize sets its pointer target.

Link copied to clipboard

Height of the fast filters row under the header.

Link copied to clipboard

Stroke width of the keyboard focus ring and the selected cell border.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Gap after the header filter icon.

Link copied to clipboard

Minimum pointer target of the header sort and filter buttons. Defaults to 48.dp on touch, 24.dp elsewhere.

Link copied to clipboard

Thickness of pinned column dividers. Should be at least 1.dp.

Link copied to clipboard

Width of the shadow cast over scrolled content at the pinned column edge; 0.dp hides it.

Link copied to clipboard

Vertical gap rendered above and below a row block declared via rowBlocks.

Link copied to clipboard
Link copied to clipboard

Grow rowHeight, headerHeight, footerHeight and fastFilterRowHeight by as much as one line of their text grows above 1.0× font scale, so text is not clipped. Set to false to keep the heights exactly as given.

Link copied to clipboard

Width of the bar marking the selected row at its leading edge; 0.dp hides it.