Package-level declarations

Types

Link copied to clipboard
data class TableHeaderCellInfo<C>(val columnKey: C, val isSortable: Boolean, val sortOrder: SortOrder?, val hasFilter: Boolean, val isFilterActive: Boolean, val toggleSort: () -> Unit, val sortIcon: @Composable () -> Unit, val filterIcon: @Composable () -> Unit)

Per-header cell info and helpers provided to the header slot via CompositionLocal.

Link copied to clipboard
Link copied to clipboard
data class TableHeaderIcons(val sortAsc: ImageVector, val sortDesc: ImageVector, val sortNeutral: ImageVector, val filterActive: ImageVector, val filterInactive: ImageVector)

Icons used by table header for sort and filter affordances.

Link copied to clipboard

Contains default values used by TableTextField.

Properties

Link copied to clipboard

Local provider for header cell info. Null outside of TableHeader.

Link copied to clipboard

Local provider for header icons (scoped per Table instance).

Functions

Link copied to clipboard

Modifier extension that integrates an editable cell component with the table's focus management system.

Link copied to clipboard
fun TableCellTextField(value: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, readOnly: Boolean = false, textStyle: TextStyle = LocalTextStyle.current, label: @Composable () -> Unit? = null, placeholder: @Composable () -> Unit? = null, leadingIcon: @Composable () -> Unit? = null, trailingIcon: @Composable () -> Unit? = null, prefix: @Composable () -> Unit? = null, suffix: @Composable () -> Unit? = null, supportingText: @Composable () -> Unit? = null, isError: Boolean = false, visualTransformation: VisualTransformation = VisualTransformation.None, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, singleLine: Boolean = false, maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE, minLines: Int = 1, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, shape: Shape = RectangleShape, colors: TextFieldColors = TextFieldDefaults.colors(), contentPadding: PaddingValues = TableTextFieldDefaults.reducedContentPadding())

Convenience text field for use inside editable table cells.

Link copied to clipboard
fun TableCellTextFieldWithTooltipError(value: String, onValueChange: (String) -> Unit, errorMessage: String, modifier: Modifier = Modifier, enabled: Boolean = true, readOnly: Boolean = false, textStyle: TextStyle = LocalTextStyle.current, label: @Composable () -> Unit? = null, placeholder: @Composable () -> Unit? = null, leadingIcon: @Composable () -> Unit? = null, trailingIcon: @Composable () -> Unit? = null, prefix: @Composable () -> Unit? = null, suffix: @Composable () -> Unit? = null, visualTransformation: VisualTransformation = VisualTransformation.None, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, singleLine: Boolean = false, maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE, minLines: Int = 1, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, shape: Shape = RectangleShape, colors: TextFieldColors = TextFieldDefaults.colors(), contentPadding: PaddingValues = TableTextFieldDefaults.reducedContentPadding())

Table cell text field with error message displayed in a persistent tooltip. When errorMessage is not empty, a tooltip with the error will be shown. The tooltip remains visible until the user clicks the dismiss button.

Link copied to clipboard

Helper that renders a filter icon and embedded FilterPanel when expanded.

Link copied to clipboard

Helper that renders a sort icon with proper state and toggles sort on click.

Link copied to clipboard
fun TableTextField(value: String, onValueChange: (String) -> Unit, modifier: Modifier = Modifier, enabled: Boolean = true, readOnly: Boolean = false, textStyle: TextStyle = LocalTextStyle.current, label: @Composable () -> Unit? = null, placeholder: @Composable () -> Unit? = null, leadingIcon: @Composable () -> Unit? = null, trailingIcon: @Composable () -> Unit? = null, prefix: @Composable () -> Unit? = null, suffix: @Composable () -> Unit? = null, supportingText: @Composable () -> Unit? = null, isError: Boolean = false, visualTransformation: VisualTransformation = VisualTransformation.None, keyboardOptions: KeyboardOptions = KeyboardOptions.Default, keyboardActions: KeyboardActions = KeyboardActions.Default, singleLine: Boolean = false, maxLines: Int = if (singleLine) 1 else Int.MAX_VALUE, minLines: Int = 1, interactionSource: MutableInteractionSource = remember { MutableInteractionSource() }, shape: Shape = OutlinedTextFieldDefaults.shape, colors: TextFieldColors = OutlinedTextFieldDefaults.colors(), contentPadding: PaddingValues = TableTextFieldDefaults.contentPadding(), showBorder: Boolean = true)

Custom text field with configurable content padding. Uses BasicTextField with OutlinedTextFieldDefaults.DecorationBox under the hood.