DropdownInputField

fun DropdownInputField(title: String, state: InputShellState, inputStyle: InputStyle = InputStyle.DataInputStyle(), isRequiredField: Boolean, expanded: Boolean, focusRequester: FocusRequester, onFocusChanged: (Boolean) -> Unit?, supportingTextData: List<SupportingTextData>?, legendData: LegendData?, selectedItem: DropdownItem?, onResetButtonClicked: () -> Unit, onDropdownIconClick: () -> Unit, modifier: Modifier = Modifier)

DHIS2 DropDownInputField. Wraps DHIS · InputShell.

Parameters

title

: controls the text to be shown for the title.

state

: Manages the InputShell state.

inputStyle

: Manages the InputShell style.

selectedItem

: manages the value of the selected item.

supportingTextData

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

legendData

: manages the legendComponent.

isRequiredField

: controls whether the field is mandatory or not.

onFocusChanged

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

modifier

: allows a modifier to be passed externally.

onResetButtonClicked

: callback to when reset button is clicked.

onDropdownIconClick

: callback to when action button is clicked.

expanded

: will control the action button.

focusRequester

: FocusRequester to be used.