DropDown

@Composable
fun <T : GObject> DropDown(model: SingleSelection<T>, onSelectionChanges: (selectedItem: T) -> Unit, item: @Composable (item: T) -> Unit, modifier: Modifier = Modifier, showArrow: Boolean = true, selectedItem: @Composable (item: T) -> Unit = { item(it) })

Parameters

onSelectionChanges

a callback invoked when the selected item changes. At the beginning, the firest item is selected

item

the composable to render items in the dropdown list

selectedItem

the composable to render the selected item in the button. Defaults to item