Skip to content

SelectInputBuilder

Declares a single-select or multi-select input value and its options.

InputBuilder.addProperty

addOption(key, input): this

Adds one option.

string

Option key, 1 to 128 characters; it is the accepted value.

AddOptionInput

Display attributes; pass {} for none.

this

This builder for chaining.

When key is empty or longer than 128 characters, or the option limit is exceeded.


addOptions(input): this

Adds several options at once, in order.

SelectOptionDefinition[]

Options to add, each with a key and display attributes.

this

This builder for chaining.

When an option key is empty or longer than 128 characters, or the option limit is exceeded.


mandatory(value?): this

Marks the value as required.

boolean

Whether the value is required.

this

This builder for chaining.

true

toDefinition(): SingleSelectInputDefinition | MultiSelectInputDefinition

Emits the select value Definition, including its options.

SingleSelectInputDefinition | MultiSelectInputDefinition