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)

Data class used for Choice group items.

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 CenterContent.

Link copied to clipboard
val enabled: Boolean = true

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.