@slack/web-api / ModalView
Defined in: node_modules/@slack/types/dist/views.d.ts:26
BaseView
blocks: AnyBlock[];Defined in: node_modules/@slack/types/dist/views.d.ts:5
An array of AnyBlock that defines the content of the view. Max of 100 blocks.
BaseView.blocksoptional callback_id: string;Defined in: node_modules/@slack/types/dist/views.d.ts:18
An identifier to recognize interactions and submissions of this particular view. Don't use this to
store sensitive information (use private_metadata instead). Maximum length of 255 characters.
Handling and responding to interactions.
BaseView.callback_idoptional clear_on_close: boolean;Defined in: node_modules/@slack/types/dist/views.d.ts:49
When set to true, clicking on the close button will clear all views in a modal and close it.
Defaults to false.
optional close: PlainTextElement;Defined in: node_modules/@slack/types/dist/views.d.ts:38
An optional PlainTextElement that defines the text displayed in the close button at the bottom-right of the view. Maximum length of 24 characters.
optional external_id: string;Defined in: node_modules/@slack/types/dist/views.d.ts:20
A custom identifier that must be unique for all views on a per-team basis.
BaseView.external_idoptional notify_on_close: boolean;Defined in: node_modules/@slack/types/dist/views.d.ts:55
Indicates whether Slack will send your app a
`view_closed` event when a user
clicks the close button. Defaults to false.
optional private_metadata: string;Defined in: node_modules/@slack/types/dist/views.d.ts:12
String that will be sent to your app in `view_submission` and `block_actions` events. Maximum length of 3000 characters.
BaseView.private_metadataoptional submit: PlainTextElement;Defined in: node_modules/@slack/types/dist/views.d.ts:44
An optional PlainTextElement that defines the text displayed in the submit button at the
bottom-right of the view. submit is required when an input block is within the blocks array. Max length of 24
characters.
title: PlainTextElement;Defined in: node_modules/@slack/types/dist/views.d.ts:33
The title that appears in the top-left of the modal. Must be a PlainTextElement with a maximum length of 24 characters.
type: "modal";Defined in: node_modules/@slack/types/dist/views.d.ts:28
The type of view. Set to modal for modals.