DropdownTextField
fun <T : Any> DropdownTextField(modifier: Modifier = Modifier, loading: Boolean = false, label: UiText = UiText.empty, value: T?, items: List<T> = emptyList(), onItemSelected: (T) -> Unit = {}, displayDelegate: (T) -> UiText = { t -> t.toString().asUiText() })(source)
Renders the DropdownTextField UI for the SDAI presentation layer.
Author
Dmitriy Moroz
Parameters
modifier
Compose modifier applied to the rendered UI.
loading
loading value consumed by the API.
label
label value consumed by the API.
value
value value consumed by the API.
items
items value consumed by the API.
onItemSelected
callback invoked by the component.
displayDelegate
display delegate value consumed by the API.