SpinnerItemImpl

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)

The implementation of the spinner.

Parameters

entry

the DropdownItem to be shown in the spinner.

entryCount

the count of the entries in the spinner.

isSelected

whether the entry is selected.

index

the index of the entry.

spinnerColors

the DropdownColors used to style the entry row.

dialogMode

whether the spinner is in dialog mode.

onSelectedIndexChange

the callback to be invoked when the selected index of the spinner is changed.