DataTableTextStyles

@Immutable
data class DataTableTextStyles(val headerCell: TextStyle = TextStyle( fontSize = 14.sp, fontWeight = FontWeight.Bold, color = Color(0xFF1C1C1C), ), val bodyCell: TextStyle = TextStyle( fontSize = 14.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C), ), val footer: TextStyle = TextStyle( fontSize = 12.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C), ), val loading: TextStyle = TextStyle( fontSize = 14.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C), ), val noData: TextStyle = TextStyle( fontSize = 16.sp, fontWeight = FontWeight.Normal, color = Color(0x991C1C1C), ), val pagination: TextStyle = TextStyle( fontSize = 14.sp, fontWeight = FontWeight.Normal, color = Color(0xFF1C1C1C), ))(source)

Text styles used throughout the DataTable.

Defaults are plain styles at typical sizes - no Material typography required.

Each style carries its own color, which is what makes these the other half of a custom palette alongside DataTableColors.

Constructors

Link copied to clipboard
constructor(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), ))

Properties

Link copied to clipboard
val bodyCell: TextStyle

Cell text rendered from a column's value. Columns with a cellContent composable style themselves and ignore this.

Link copied to clipboard
val footer: TextStyle

The row-count and range readouts in the footer.

Link copied to clipboard
val headerCell: TextStyle

Column titles, including grouped-header labels.

Link copied to clipboard
val loading: TextStyle

The built-in loading indicator, when no loadingContent is supplied.

Link copied to clipboard
val noData: TextStyle

The built-in empty state, when no noDataContent is supplied.

Link copied to clipboard
val pagination: TextStyle

Page controls: the page indicator, the rows-per-page label, and the options in its menu.