Skip to main content

Interface: MultiStaticSelect

Description

This is the simplest form of select menu, with a static list of options passed in when defining the element.

See

Extends

Properties

action_id?

optional action_id: string;

@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_ids in the containing block. Maximum length for this field is 255 characters.

Inherited from

Actionable.action_id

Defined in

block-kit/extensions.ts:15


confirm?

optional confirm: ConfirmationDialog;

Description

A Confirm object that defines an optional confirmation dialog after the element is interacted with.

Inherited from

Confirmable.confirm

Defined in

block-kit/extensions.ts:25


focus_on_load?

optional focus_on_load: boolean;

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

Focusable.focus_on_load

Defined in

block-kit/extensions.ts:42


initial_options?

optional initial_options: PlainTextOption[];

Description

An array of option objects that exactly match one or more of the options within options or option_groups. These options will be selected when the menu initially loads.

Defined in

block-kit/block-elements.ts:300


max_selected_items?

optional max_selected_items: number;

Description

Specifies the maximum number of items that can be selected. Minimum number is 1.

Inherited from

MaxItemsSelectable.max_selected_items

Defined in

block-kit/extensions.ts:49


option_groups?

optional option_groups: object[];

Description

An array of option group objects. Maximum number of option groups is 100. If options is specified, this field should not be.

Defined in

block-kit/block-elements.ts:315


options?

optional options: PlainTextOption[];

Description

An array of PlainTextOption. Maximum number of options is 100. If option_groups is specified, this field should not be.

Defined in

block-kit/block-elements.ts:307


placeholder?

optional placeholder: PlainTextElement;

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

Placeholdable.placeholder

Defined in

block-kit/extensions.ts:57


type

type: "multi_static_select";

Description

The type of element. In this case type is always multi_static_select.

Overrides

Actionable.type

Defined in

block-kit/block-elements.ts:294