OptionPickerInput

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

Represents a selectable input on a form for a single selection.

Parameters

optionItems
selectedOptionIndex

The currently selected index.

Constructors

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

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.