CheckboxGroupItem

data class CheckboxGroupItem<T>(val key: T, val label: String, val checked: Boolean = false, val enabled: Boolean = true, val caption: String? = null, val helperTextErrorLabel: String? = null)

Data class used for CheckboxGroup

Constructors

Link copied to clipboard
constructor(key: T, label: String, checked: Boolean = false, enabled: Boolean = true, caption: String? = null, helperTextErrorLabel: String? = null)

Create empty Checkbox group item

Properties

Link copied to clipboard
val caption: String? = null

can be used to provide clarification for the option.

Link copied to clipboard
val checked: Boolean = false

is the item should be mark as checked or not

Link copied to clipboard
val enabled: Boolean = true

is the item is enable for selection

Link copied to clipboard

adds a HelperText with HelperTextState.Error state to specify Errors.

Link copied to clipboard
val key: T

item identifier

Link copied to clipboard

to be displayed in the group