Interface: StaticSelect
Defined in: block-kit/block-elements.ts:253
Description
This is the simplest form of select menu, with a static list of options passed in when defining the element.
See
- Select menu of static options reference.
- This is an interactive component - see our guide to enabling interactivity.
Extends
Properties
action_id?
optional action_id: string;
Defined in: block-kit/extensions.ts:15
@description: An identifier for this action. You can use this when you receive an interaction payload to
identify the source of the action. Should be unique
among all other action_id
s in the containing block. Maximum length for this field is 255 characters.
Inherited from
confirm?
optional confirm: ConfirmationDialog;
Defined in: block-kit/extensions.ts:25
Description
A Confirm object that defines an optional confirmation dialog after the element is interacted with.
Inherited from
focus_on_load?
optional focus_on_load: boolean;
Defined in: block-kit/extensions.ts:42
Description
Indicates whether the element will be set to auto focus within the
`view` object. Only one element can be set to true
.
Defaults to false
.
Inherited from
initial_option?
optional initial_option: PlainTextOption;
Defined in: block-kit/block-elements.ts:263
Description
A single option that exactly matches one of the options within options
or option_groups
.
This option will be selected when the menu initially loads.
option_groups?
optional option_groups: object[];
Defined in: block-kit/block-elements.ts:278
label
label: PlainTextElement;
options
options: PlainTextOption[];
Description
An array of option group objects. Maximum number of option groups is 100. If options
is specified,
this field should not be.
options?
optional options: PlainTextOption[];
Defined in: block-kit/block-elements.ts:270
Description
An array of PlainTextOption. Maximum number of options is 100. If option_groups
is
specified, this field should not be.
placeholder?
optional placeholder: PlainTextElement;
Defined in: block-kit/extensions.ts:57
Description
A PlainTextElement object that defines the placeholder text shown on the element. Maximum
length for the text
field in this object is 150 characters.
Inherited from
type
type: "static_select";
Defined in: block-kit/block-elements.ts:257
Description
The type of element. In this case type
is always static_select
.