Input Yes No Field
fun InputYesNoField(title: String, modifier: Modifier = Modifier, state: InputShellState, inputStyle: InputStyle = InputStyle.DataInputStyle(), supportingText: List<SupportingTextData>? = null, legendData: LegendData? = null, isRequired: Boolean = false, itemSelected: InputYesNoFieldValues? = null, onItemChange: (InputYesNoFieldValues?) -> Unit)
DHIS2 Input Yes/No Field. Wraps DHIS · RadioButton.
Parameters
title
: controls the text to be shown for the title.
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.
item Selected
: controls which item is selected.
on Item Change
: is a callback to notify which item has changed into the block.