FormDropdown

data class FormDropdown<T : Any>(val label: String, val items: List<T>, val mapper: @Composable (T) -> String, val selected: T, val onSelectionChange: (T) -> Unit, val subLabel: String? = null, val help: FormHelp? = null, val visible: Boolean = true, val enabled: Boolean = true) : FormItem.Labeled

Constructors

Link copied to clipboard
constructor(label: String, items: List<T>, mapper: @Composable (T) -> String, selected: T, onSelectionChange: (T) -> Unit, subLabel: String? = null, help: FormHelp? = null, visible: Boolean = true, enabled: Boolean = true)
constructor(label: String, items: List<T>, mapper: @Composable (T) -> String, selected: MutableState<T>, subLabel: String? = null, help: FormHelp? = null, visible: Boolean = true, enabled: Boolean = true)

Properties

Link copied to clipboard
open override val enabled: Boolean
Link copied to clipboard
open override val help: FormHelp?
Link copied to clipboard
val items: List<T>
Link copied to clipboard
open override val label: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val selected: T
Link copied to clipboard
open override val subLabel: String?
Link copied to clipboard
open override val visible: Boolean

Functions

Link copied to clipboard
open override fun Content(config: FormConfig, parentIsEnabled: Boolean)