AppChipItem

data class AppChipItem(val label: String, val onClick: () -> Unit = {}, val hasDropDown: Boolean = false, val isFilter: Boolean = true, val isSelected: Boolean = false, val dropDownOptions: List<String>? = null, val onOptionSelected: (String) -> Unit = {})

Data class representing a chip item in an AppChipGroup.

Constructors

Link copied to clipboard
constructor(label: String, onClick: () -> Unit = {}, hasDropDown: Boolean = false, isFilter: Boolean = true, isSelected: Boolean = false, dropDownOptions: List<String>? = null, onOptionSelected: (String) -> Unit = {})

Properties

Link copied to clipboard

List of options to show in the dropdown menu.

Link copied to clipboard

Whether the chip should display a dropdown icon.

Link copied to clipboard

Whether the chip acts as a filter that can be selected.

Link copied to clipboard

Whether the chip is currently selected.

Link copied to clipboard

The text to be displayed on the chip.

Link copied to clipboard
val onClick: () -> Unit

Action to be performed when the chip is clicked.

Link copied to clipboard

Callback invoked when a dropdown option is selected.