SelectMenu
SelectMenu
Class representing a select menu component.
new SelectMenu(options)
Create a select menu.
Returns: Object
- - The select menu component.
Param | Type | Default | Description |
---|---|---|---|
options | Object | The options for the select menu. | |
options.customid | string | The custom ID for the select menu. | |
options.placeholder | string | The placeholder text for the select menu. | |
[options.disabled] | boolean | false | Whether the select menu is disabled. |
[options.minvalues] | number | 1 | The minimum number of values that can be selected. |
[options.maxvalues] | number | 1 | The maximum number of values that can be selected. |
[options.options] | Array | The options for the select menu. |