InputCheckBox
fun InputCheckBox( title: String, checkBoxData: List<CheckBoxData>, modifier: Modifier = Modifier, orientation: Orientation = Orientation.VERTICAL, state: InputShellState, supportingText: List<SupportingTextData>? = null, legendData: LegendData? = null, isRequired: Boolean = false, inputStyle: InputStyle = InputStyle.DataInputStyle(), onItemChange: (CheckBoxData) -> Unit, onClearSelection: () -> Unit)
DHIS2 Input Check Box. Wraps DHIS · InputShell.
Parameters
title
: controls the text to be shown for the title.
checkBoxData
: data class CheckBoxData used for checkboxes to be displayed.
modifier
: allows a modifier to be passed externally.
orientation
: Controls how the check boxes will be displayed, HORIZONTAL for rows or VERTICAL for columns.
state
: Manages the InputShell state.
supportingText
: is a list of SupportingTextData that manages all the messages to be shown.
legendData
: manages the legendComponent.
isRequired
: controls whether the field is mandatory or not.
inputStyle
: manages the InputShell style.
onItemChange
: is a callback to notify which item has changed into the block.
onClearSelection
: is a callback to notify all items has cleared into the block.