Skip to content

SelectMenu

SelectMenu

Represents a select menu component.

Kind: global class

new SelectMenu(options)

Constructs a select object with the given parameters.

Returns: Object - The constructed select object.

ParamTypeDescription
optionsObjectThe options for the select menu.
options.customidstringThe custom ID of the select menu.
options.placeholderstringThe placeholder text for the select menu.
options.disabledbooleanWhether the select menu is disabled or not.
options.minvaluesnumberThe minimum number of values that can be selected.
options.maxvaluesnumberThe maximum number of values that can be selected.
options.optionsArrayThe options for the select menu.