DefaultFilterChip

fun <C> DefaultFilterChip(node: TableFilterChipNode<C>, modifier: Modifier = Modifier, onClick: () -> Unit? = node.defaultOnClick(), label: @Composable () -> Unit = { DefaultFilterChipLabel(node) }, leadingIcon: @Composable () -> Unit? = node.defaultLeadingIcon(), colors: SelectableChipColors = (LocalFilterChipColors.current ?: TableFilterChipDefaults.colors()).of(node), clearContentDescription: String = node.defaultClearContentDescription())

The library's filter chip: an InputChip whose click opens the condition's panel or the group's popover and whose × removes the node. A TableFilterChipStyle.chip can call it to change one part of a chip and keep the rest.

Parameters

node

the chip's node

modifier

modifier for the chip

onClick

called on a click on the chip; null makes only the × clickable, as for an unknown column or a node whose canOpen is false. Such a chip is reported to accessibility services as disabled and keeps its colors

label

the chip's label; a condition's defaults to its column's TableFilterChipContent.label or TableFilterChipNode.Condition.label, a group's to its badges, text and an expand arrow

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 ×