Spinner Item Impl
fun SpinnerItemImpl(entry: DropdownItem, entryCount: Int, isSelected: Boolean, index: Int, spinnerColors: DropdownColors, dialogMode: Boolean = false, onSelectedIndexChange: (Int) -> Unit)
Deprecated
Use DropdownImpl instead. SpinnerItemImpl is a thin alias kept for compatibility.
Replace with
DropdownImpl(item = entry, optionSize = entryCount, isSelected = isSelected, index = index, dropdownColors = spinnerColors, enabled = entry.enabled, dialogMode = dialogMode, onSelectedIndexChange = onSelectedIndexChange)Content copied to clipboard
The implementation of the spinner.
Parameters
entry
the DropdownItem to be shown in the spinner.
entry Count
the count of the entries in the spinner.
is Selected
whether the entry is selected.
index
the index of the entry.
spinner Colors
the DropdownColors used to style the entry row.
dialog Mode
whether the spinner is in dialog mode.
on Selected Index Change
the callback to be invoked when the selected index of the spinner is changed.