Skip to content

SelectMenu

SelectMenu

Class representing a select menu component.

Kind: global class

new SelectMenu(options)

Create a select menu.

Returns: Object - - The select menu component.

ParamTypeDefaultDescription
optionsObjectThe options for the select menu.
options.customidstringThe custom ID for the select menu.
options.placeholderstringThe placeholder text for the select menu.
[options.disabled]booleanfalseWhether the select menu is disabled.
[options.minvalues]number1The minimum number of values that can be selected.
[options.maxvalues]number1The maximum number of values that can be selected.
[options.options]ArrayThe options for the select menu.