MyDropdownIndex
fun <T> MyDropdownIndex(items: List<T>, selectedIndex: MutableState<Int>, modifier: Modifier = Modifier, mapper: @Composable (item: T) -> String = { it.toString() }, mapperDropdown: @Composable (item: T) -> String = mapper, title: String = "", enabled: Boolean = true, color: Color = Color.Unspecified, backgroundColor: Color = Color.Unspecified, filter: MyDropdown.Filter<T>? = null, style: MyDropdown.Style = MyDropdownDefaults.style(), content: @Composable (modifier: Modifier, item: T?, title: String, text: String, titleColor: Color, textColor: Color) -> Unit = { modifier, item, title, text, titleColor, textColor ->
MyDropdownDefaults.Content(modifier, title, text, titleColor, textColor)
}, dropdownContent: @Composable (item: T, text: String, selected: Boolean) -> Unit = { item, text, selected ->
MyDropdownDefaults.DropdownContent(text, selected)
}, onSelectionChanged: (Int) -> Unit? = null)
fun <T> MyDropdownIndex(items: List<T>, selectedIndex: Int, modifier: Modifier = Modifier, mapper: @Composable (item: T) -> String = { it.toString() }, mapperDropdown: @Composable (item: T) -> String = mapper, title: String = "", enabled: Boolean = true, color: Color = Color.Unspecified, backgroundColor: Color = Color.Unspecified, filter: MyDropdown.Filter<T>? = null, style: MyDropdown.Style = MyDropdownDefaults.style(), content: @Composable (modifier: Modifier, item: T?, title: String, text: String, titleColor: Color, textColor: Color) -> Unit = { modifier, item, title, text, titleColor, textColor ->
MyDropdownDefaults.Content(modifier, title, text, titleColor, textColor)
}, dropdownContent: @Composable (item: T, text: String, selected: Boolean) -> Unit = { item, text, selected ->
MyDropdownDefaults.DropdownContent(text, selected)
}, onSelectionChanged: (Int) -> Unit)