InputOrgUnit

fun InputOrgUnit(    title: String,     state: InputShellState = InputShellState.UNFOCUSED,     inputStyle: InputStyle = InputStyle.DataInputStyle(),     supportingText: List<SupportingTextData>? = null,     legendData: LegendData? = null,     inputText: String? = null,     isRequiredField: Boolean = false,     onValueChanged: (String?) -> Unit? = null,     onFocusChanged: (Boolean) -> Unit? = null,     modifier: Modifier = Modifier,     onOrgUnitActionCLicked: () -> Unit)

DHIS2 Input org unit.

Parameters

title

: controls the text to be shown for the title.

state

: Manages the InputShell state.

inputStyle

: manages the InputShell style.

supportingText

: is a list of SupportingTextData that manages all the messages to be shown.

legendData

: manages the legendComponent.

inputText

: manages the value of the text in the input field.

isRequiredField

: controls whether the field is mandatory or not.

onValueChanged

: gives access to the onValueChanged event.

onFocusChanged

: gives access to the onFocusChanged returns true if item is focused.

modifier

: allows a modifier to be passed externally.

onOrgUnitActionCLicked

: callback to when org unit button is clicked.