Input Drop Down
fun InputDropDown(title: String, state: InputShellState, inputStyle: InputStyle = InputStyle.DataInputStyle(), dropdownItems: List<DropdownItem>, selectedItem: DropdownItem? = null, supportingTextData: List<SupportingTextData>? = null, legendData: LegendData? = null, isRequiredField: Boolean = false, modifier: Modifier = Modifier, onFocusChanged: (Boolean) -> Unit? = null, onResetButtonClicked: () -> Unit, onItemSelected: (DropdownItem) -> Unit, showSearchBar: Boolean = true, expanded: Boolean = false, noResultsFoundString: String = provideStringResource("no_results_found"), searchToFindMoreString: String = provideStringResource("search_to_see_more"))
DHIS2 Input dropdown. Wraps DHIS · DropdownInputField.
Parameters
title
: controls the text to be shown for the title.
state
: Manages the InputShell state.
input Style
: Manages the InputShell style.
dropdown Items
: list of DropdownItem to be used.
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 Item Selected
: callback to when a dropdown item is selected.
show Search Bar
: config whether to show search bar in the bottom sheet.
no Results Found String
: text to be shown in pop up when no results are found.