Skip to content

@vttforge/core / SelectPromptField

Interface: SelectPromptField

Extends

  • PromptFieldBase

Properties

blank?

readonly optional blank?: string

Text for an empty first option. Left out, there is none.


hint?

readonly optional hint?: string

Hint under the input, as a localization key or text.

Inherited from

PromptFieldBase.hint


label

readonly label: string

Label, as a localization key or text.

Inherited from

PromptFieldBase.label


name

readonly name: string

The key in the result, and the input's name.

Inherited from

PromptFieldBase.name


options

readonly options: Readonly<Record<string, string>> | readonly SelectPromptOption[]

{ value: label }, or a list when order or groups matter.


type

readonly type: "select"


value?

readonly optional value?: string

MIT licensed.