DefaultActiveFilterChip

fun <C> DefaultActiveFilterChip(ctx: TableFilterChipContext<C>, modifier: Modifier = Modifier, onClick: () -> Unit? = ctx.onOpen, label: @Composable () -> Unit = { Text(ctx.label) }, leadingIcon: @Composable () -> Unit? = null, colors: SelectableChipColors = InputChipDefaults.inputChipColors(), clearContentDescription: String = ctx.strings.get(UiString.ColumnMenuClearFilter))

Deprecated

Call DefaultFilterChip from TableFilterChipStyle.chip. Removed in 4.0.

The active filters row's default chip: an InputChip with TableFilterChipContext.label whose click opens the filter panel and whose × resets the filter. A column's ColumnSpec.activeFilterChip can call it to change one part of the chip and keep the rest.

Parameters

ctx

the chip's context

modifier

modifier for the chip

onClick

called on a click on the chip; null makes only the × clickable. Such a chip is reported to accessibility services as disabled and keeps its colors, so mark it with leadingIcon or label

label

the chip's label

leadingIcon

optional icon before the label; give it a contentDescription when it carries meaning

colors

the chip's colors; the chip is always selected, so the selected* colors are the ones shown

clearContentDescription

accessibility label of the ×