SelectInput

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

A List of OptionItem.TypedOptionItem.TitleOptionItem selectable options.

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

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

Functions

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

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