Input Check Box
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.
check Box Data
: 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.
supporting Text
: is a list of SupportingTextData that manages all the messages to be shown.
legend Data
: manages the legendComponent.
is Required
: controls whether the field is mandatory or not.
input Style
: manages the InputShell style.
on Item Change
: is a callback to notify which item has changed into the block.
on Clear Selection
: is a callback to notify all items has cleared into the block.