SelectableField
constructor(label: String, choices: List<Value>, choiceLabel: (Value) -> String = { it.toString() }, type: SelectableField.Type = DROPDOWN, initialValue: Value = choices[0], valueCode: (Value) -> String = { defaultValueCode(label) }, serializer: KSerializer<Value>? = null)
Parameters
choiceLabel
Text to be displayed in the UI to select a choice.
type
Select UI type, default is Type.DROPDOWN. See also SelectableField.Type.
serializer
Optional serializer for the value type. If provided, enables serialization support. For enum types, consider using EnumField which provides automatic serialization.