Input Org Unit
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.
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.
input Text
: manages the value of the text in the input field.
is Required Field
: controls whether the field is mandatory or not.
on Value Changed
: gives access to the onValueChanged event.
on Focus Changed
: gives access to the onFocusChanged returns true if item is focused.
modifier
: allows a modifier to be passed externally.
on Org Unit Action CLicked
: callback to when org unit button is clicked.