SelectInput

class SelectInput(id: String, label: TitleItem.DefaultTitleItem, hintText: String? = null, required: Boolean? = false, val optionItems: List<OptionItem.TypedOptionItem.TitleOptionItem>, val multipleSelection: Boolean = false) : Input

Represents a selectable input on a form for single or multiple selections.

Parameters

optionItems
multipleSelection

Determines whether this input allows for multiple selections.

Constructors

Link copied to clipboard
constructor(id: String, label: TitleItem.DefaultTitleItem, hintText: String? = null, required: Boolean? = false, optionItems: List<OptionItem.TypedOptionItem.TitleOptionItem>, multipleSelection: Boolean = false)

Properties

Link copied to clipboard
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Converts the input to its corresponding InputValue type

Link copied to clipboard
open override fun validate(): Input.ValidationError?

Use this validation to determine if the current value for this input is valid.