Dropdown Input Field
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.
input Style
: Manages the InputShell style.
selected Item
: manages the value of the selected item.
supporting Text Data
: is a list of SupportingTextData that manages all the messages to be shown.
legend Data
: manages the legendComponent.
is Required Field
: controls whether the field is mandatory or not.
on Focus Changed
: gives access to the onFocusChanged returns true if item is focused.
modifier
: allows a modifier to be passed externally.
on Reset Button Clicked
: callback to when reset button is clicked.
on Dropdown Icon Click
: callback to when action button is clicked.
expanded
: will control the action button.
focus Requester
: FocusRequester to be used.