DataTableDefaults

Functions

Link copied to clipboard
@Composable
fun colors(container: Color = Color(0xFFFAFAFA), header: Color = Color(0xFFF0F0F0), divider: Color = Color(0xFFDDDDDD), selectedRow: Color = Color(0x4D1976D2), expandedRow: Color = Color(0x80F0F0F0), onSurface: Color = Color(0xFF1C1C1C), onSurfaceSecondary: Color = Color(0xFF757575), checkboxChecked: Color = Color(0xFF1976D2), checkboxUnchecked: Color = Color(0xFF757575), checkboxCheckmark: Color = Color.White, iconTint: Color = Color(0xFF616161), disabledContent: Color = Color(0xFFBDBDBD), rowAlternate: Color = Color.Transparent, hoveredRow: Color = Color(0x1A000000), focusedRowBorder: Color = Color(0xFF1976D2), focusedCellBorder: Color = Color(0xFF1976D2), editingCell: Color = Color(0xFFFFFFFF), invalidCellBorder: Color = Color(0xFFD32F2F), selectedCell: Color = Color(0x331976D2), draggedColumn: Color = Color(0x1F1976D2), columnDropIndicator: Color = Color(0xFF1976D2), filterRow: Color = Color(0xFFF7F7F7), filterField: Color = Color(0xFFFFFFFF)): DataTableColors

Creates a DataTableColors, remembered against its arguments.

Link copied to clipboard
fun rowHeight(density: DataTableDensity): Dp

The height DataTable gives a row when it is not told one: enough for a single line of body text at density's padding.

Link copied to clipboard
@Composable
fun textStyles(headerCell: TextStyle = TextStyle(fontSize = 14.sp, fontWeight = FontWeight.Bold, color = Color(0xFF1C1C1C)), bodyCell: TextStyle = TextStyle(fontSize = 14.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C)), footer: TextStyle = TextStyle(fontSize = 12.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C)), loading: TextStyle = TextStyle(fontSize = 14.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C)), noData: TextStyle = TextStyle(fontSize = 16.sp, fontWeight = FontWeight.Normal, color = Color(0x991C1C1C)), pagination: TextStyle = TextStyle(fontSize = 14.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C)), cellEditor: TextStyle = TextStyle(fontSize = 14.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C)), filterField: TextStyle = TextStyle(fontSize = 13.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C))): DataTableTextStyles

Creates a DataTableTextStyles, remembered against its arguments.