DataWeave Slack Library
Elements
slack::Elements
Representation of all Slack elements.
Index
Types
| Name | Description | 
|---|---|
| Button | Represents a button element. | 
| Checkbox | Represents a checkbox group element. | 
| ConversationsList | Represents a conversation list. | 
| DatePicker | Represents a datepicker element. | 
| Element | Represents a block element. | 
| ExternalSelect | Represents an external select menu. | 
| Image | Represents an image element. | 
| MultiConversationList | Represents a multi-conversation list. | 
| MultiExternalSelect | Represents an external multi-select menu. | 
| MultiPublicChannelsList | Represents a channel list. | 
| MultiSelect | Helper type to reuse for multi-selection. | 
| MultiSelectMenu | Represents all multi-select menus. | 
| MultiStaticSelect | Represents a static multi-select menu. | 
| MultiUserList | Represents a multi-user list. | 
| OverflowMenu | Represents an overflow menu. | 
| PlainTextInput | Represents a plain text input. | 
| PublicChannelsList | Represents a channel list. | 
| RadioButtonGroup | Represents a radio button group. | 
| Select | Helper type to reuse a selection. | 
| SelectMenu | Represents all select menus. | 
| StaticSelect | Represents a static select menu. | 
| TimePicker | Represents a timepicker element. | 
| UserList | Represents a user list. | 
| WithOptionalConfirm | Helper type to reuse a confirm option. | 
| WithOptionalFocus | Helper type to reuse focus on a load option. | 
Types
Button ↑↑
Represents a button element.
Definition
WithOptionalConfirm & { "type": "button", text: PlainText, action_id: String, url?: String, value?: String, style?: Style, accessibility_label?: String }Checkbox ↑↑
Represents a checkbox group element.
Definition
WithOptionalConfirm & WithOptionalFocus & { "type": "checkboxes", action_id: String, options: Array<Option>, initial_options?: Array<Option> }ConversationsList ↑↑
Represents a conversation list.
Definition
Select & { "type": "conversations_select", initial_conversation?: String, default_to_current_conversation?: Boolean, response_url_enabled?: Boolean, filter?: Filter }DatePicker ↑↑
Represents a datepicker element.
Definition
WithOptionalConfirm & WithOptionalFocus & { "type": "datepicker", action_id: String, placeholder?: PlainText, initial_date?: String }Element ↑↑
Represents a block element.
Definition
Button | Checkbox | DatePicker | Image | MultiSelectMenu | OverflowMenu | PlainTextInput | RadioButtonGroup | SelectMenu | TimePickerExternalSelect ↑↑
Represents an external select menu.
External Data Source Reference
Definition
Select & { "type": "external_select", initial_option?: Option, min_query_length?: Number }Image ↑↑
Represents an image element.
Definition
{ "type": "image", image_url: String, alt_text: String }MultiConversationList ↑↑
Represents a multi-conversation list.
Definition
MultiSelect & { "type": "multi_conversations_select", initial_conversations?: Array<String>, default_to_current_conversation?: Boolean, filter?: Filter }MultiExternalSelect ↑↑
Represents an external multi-select menu.
External Data Source Reference
Definition
MultiSelect & { "type": "multi_external_select", initial_options?: Array<Option>, min_query_length?: Number }MultiPublicChannelsList ↑↑
Represents a channel list.
Public Channels List Reference
Definition
MultiSelect & { "type": "multi_channels_select", initial_channels?: Array<String> }MultiSelect ↑↑
Helper type to reuse for multi-selection.
Definition
Select & { max_selected_items?: Number }MultiSelectMenu ↑↑
Represents all multi-select menus.
Multi-select menu Element Reference
Definition
MultiStaticSelect | MultiExternalSelect | MultiUserList | MultiConversationList | MultiPublicChannelsListMultiStaticSelect ↑↑
Represents a static multi-select menu.
Definition
MultiSelect & WithOptions | MultiSelect & WithOptionGroup & { "type": "multi_static_select", initial_options?: Array<Option> }MultiUserList ↑↑
Represents a multi-user list.
Definition
MultiSelect & { "type": "multi_users_select", initial_users?: Array<String> }OverflowMenu ↑↑
Represents an overflow menu.
Overflow Menu Element Reference
Definition
WithOptions & WithOptionalConfirm & { "type": "overflow", action_id: String }PlainTextInput ↑↑
Represents a plain text input.
Plain-text Input Element Reference
Definition
WithOptionalFocus & { "type": "plain_text_input", action_id: String, placeholder?: PlainText, initial_value?: String, multiline?: Boolean, min_length?: Number, max_length?: Number, dispatch_action_config?: Dispatch }PublicChannelsList ↑↑
Represents a channel list.
Public Channels List Reference
Definition
Select & { "type": "channels_select", initial_channel?: String, response_url_enabled?: Boolean }RadioButtonGroup ↑↑
Represents a radio button group.
Radio Button Group Element Reference
Definition
WithOptionalConfirm & WithOptionalFocus & WithOptions & { "type": "radio_buttons", action_id: String, initial_option?: Option }Select ↑↑
Helper type to reuse a selection.
Definition
WithOptionalConfirm & WithOptionalFocus & { placeholder: PlainText, action_id: String }SelectMenu ↑↑
Represents all select menus.
Definition
StaticSelect | ExternalSelect | UserList | ConversationsList | PublicChannelsListStaticSelect ↑↑
Represents a static select menu.
Definition
Select & WithOptions | Select & WithOptionGroup & { "type": "static_select", initial_option?: Option }TimePicker ↑↑
Represents a timepicker element.
Definition
WithOptionalConfirm & WithOptionalFocus & { "type": "timepicker", action_id: String, placeholder?: PlainText, initial_time: String }UserList ↑↑
Represents a user list.
Definition
Select & { "type": "users_select", initial_user?: String }WithOptionalConfirm ↑↑
Helper type to reuse a confirm option.
Definition
{ confirm?: Confirmation }WithOptionalFocus ↑↑
Helper type to reuse focus on a load option.
Definition
{ focus_on_load?: Boolean }