ChoiceGroupItem

data class ChoiceGroupItem<T>(val key: T, val content: ChoiceContent, val leadingContent: ChoiceLeadingContent = ChoiceLeadingContent.None, val trailingContent: ChoiceTrailingContent = ChoiceTrailingContent.None, val enabled: Boolean = true)(source)

Data class used for Choice group items.

Parameters

T

The type of the key used to uniquely identify each item in the group.

Constructors

Link copied to clipboard
constructor(key: T, content: ChoiceContent, leadingContent: ChoiceLeadingContent = ChoiceLeadingContent.None, trailingContent: ChoiceTrailingContent = ChoiceTrailingContent.None, enabled: Boolean = true)

Properties

Link copied to clipboard

The content of the Choice item. Uses ChoiceContent.

Link copied to clipboard

Controls the enabled state of the Choice. When false, this button will not be selectable and appears in the disabled ui state.

Link copied to clipboard
val key: T

Unique identifier for each item in the group list.

Link copied to clipboard

Leading content for Choice: Icon, Payment Logo, or Image. Uses ChoiceLeadingContent.

Link copied to clipboard

Trailing content for Choice: Icon, Image, Text, or Price. Uses ChoiceTrailingContent.