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.
Parameters
key
Unique identifier for each item in the group list.
content
The content of the Choice item. Uses CenterContent.
leadingContent
Leading content for Choice: Icon, Payment Logo, or Image. Uses ChoiceLeadingContent.
trailingContent
Trailing content for Choice: Icon, Image, Text, or Price. Uses ChoiceTrailingContent.
enabled
Controls the enabled state of the Choice. When false, this button will not be selectable and appears in the disabled ui state.
Constructors
Link copied to clipboard
constructor(key: T, content: ChoiceContent, leadingContent: ChoiceLeadingContent = ChoiceLeadingContent.None, trailingContent: ChoiceTrailingContent = ChoiceTrailingContent.None, enabled: Boolean = true)