OptionPickerInput

class OptionPickerInput(val id: String, val label: TitleItem.DefaultTitleItem, val hintText: String? = null, val 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

A List of OptionItem.TypedOptionItem.TitleOptionItem selectable options.

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
val hintText: String? = null
Link copied to clipboard
val id: String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val required: Boolean? = false
Link copied to clipboard
Link copied to clipboard

The currently selected OptionItem.TypedOptionItem.TitleOptionItem value for this input.

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.