SelectInputBuilder
Declares a single-select or multi-select input value and its options.
Methods
Section titled “Methods”addOption()
Section titled “addOption()”addOption(
key,input):this
Adds one option.
Parameters
Section titled “Parameters”string
Option key, 1 to 128 characters; it is the accepted value.
Display attributes; pass {} for none.
Returns
Section titled “Returns”this
This builder for chaining.
Throws
Section titled “Throws”When key is empty or longer than 128 characters, or the option limit is exceeded.
addOptions()
Section titled “addOptions()”addOptions(
input):this
Adds several options at once, in order.
Parameters
Section titled “Parameters”Options to add, each with a key and display attributes.
Returns
Section titled “Returns”this
This builder for chaining.
Throws
Section titled “Throws”When an option key is empty or longer than 128 characters, or the option limit is exceeded.
mandatory()
Section titled “mandatory()”mandatory(
value?):this
Marks the value as required.
Parameters
Section titled “Parameters”value?
Section titled “value?”boolean
Whether the value is required.
Returns
Section titled “Returns”this
This builder for chaining.
Default Value
Section titled “Default Value”truetoDefinition()
Section titled “toDefinition()”toDefinition():
SingleSelectInputDefinition|MultiSelectInputDefinition
Emits the select value Definition, including its options.

