Data Table Text Styles
@Immutable
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),
), cellEditor: TextStyle = TextStyle(
fontSize = 14.sp,
fontWeight = FontWeight.Normal,
color = Color(0xFF1C1C1C),
), filterField: TextStyle = TextStyle(
fontSize = 13.sp,
fontWeight = FontWeight.Normal,
color = Color(0xFF1C1C1C),
))
Properties
Link copied to clipboard
Text inside an open cell editor. Matches bodyCell by default so a cell does not jump as it goes into edit mode.
Link copied to clipboard
Text typed into a column filter, and its placeholder. A size down from bodyCell, so the filter row reads as a control strip rather than as another row of data.
Link copied to clipboard
Column titles, including grouped-header labels.
Link copied to clipboard
Page controls: the page indicator, the rows-per-page label, and the options in its menu.