Input Yes Only Check Box
fun InputYesOnlyCheckBox(checkBoxData: CheckBoxData, modifier: Modifier = Modifier, state: InputShellState, inputStyle: InputStyle = InputStyle.DataInputStyle(), supportingText: List<SupportingTextData>? = null, legendData: LegendData? = null, isRequired: Boolean = false, onClick: (Boolean) -> Unit)
DHIS2 Input Yes Only Check box. Wraps DHIS · InputShell.
Parameters
check Box Data
data class CheckBoxData used for checkbox to be displayed.
modifier
: allows a modifier to be passed externally.
state
: Manages the InputShell state.
input Style
: manages the InputShell style.
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.
on Click
will be called when the user taps the check box.