Class MultiExternalSelectElement.MultiExternalSelectElementBuilder
- java.lang.Object
-
- com.slack.api.model.block.element.MultiExternalSelectElement.MultiExternalSelectElementBuilder
-
- Enclosing class:
- MultiExternalSelectElement
public static class MultiExternalSelectElement.MultiExternalSelectElementBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MultiExternalSelectElement.MultiExternalSelectElementBuilder
actionId(String actionId)
An identifier for the action triggered when a menu option is selected.MultiExternalSelectElement
build()
MultiExternalSelectElement.MultiExternalSelectElementBuilder
confirm(ConfirmationDialogObject confirm)
A confirm object that defines an optional confirmation dialog that appears before the multi-select choices are submitted.MultiExternalSelectElement.MultiExternalSelectElementBuilder
focusOnLoad(Boolean focusOnLoad)
Indicates whether the element will be set to auto focus within the view object.MultiExternalSelectElement.MultiExternalSelectElementBuilder
initialOptions(List<OptionObject> initialOptions)
An array of option objects that exactly match one or more of the options within options or option_groups.MultiExternalSelectElement.MultiExternalSelectElementBuilder
maxSelectedItems(Integer maxSelectedItems)
Specifies the maximum number of items that can be selected in the menu.MultiExternalSelectElement.MultiExternalSelectElementBuilder
minQueryLength(Integer minQueryLength)
When the typeahead field is used, a request will be sent on every character change.MultiExternalSelectElement.MultiExternalSelectElementBuilder
placeholder(PlainTextObject placeholder)
A plain_text only text object that defines the placeholder text shown on the menu.String
toString()
-
-
-
Method Detail
-
placeholder
public MultiExternalSelectElement.MultiExternalSelectElementBuilder placeholder(PlainTextObject placeholder)
A plain_text only text object that defines the placeholder text shown on the menu. Maximum length for the text in this field is 150 characters.- Returns:
this
.
-
actionId
public MultiExternalSelectElement.MultiExternalSelectElementBuilder actionId(String actionId)
An identifier for the action triggered when a menu option is selected. 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 used elsewhere by your app. Maximum length for this field is 255 characters.- Returns:
this
.
-
initialOptions
public MultiExternalSelectElement.MultiExternalSelectElementBuilder initialOptions(List<OptionObject> initialOptions)
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.- Returns:
this
.
-
minQueryLength
public MultiExternalSelectElement.MultiExternalSelectElementBuilder minQueryLength(Integer minQueryLength)
When the typeahead field is used, a request will be sent on every character change. If you prefer fewer requests or more fully ideated queries, use the min_query_length attribute to tell Slack the fewest number of typed characters required before dispatch.- Returns:
this
.
-
confirm
public MultiExternalSelectElement.MultiExternalSelectElementBuilder confirm(ConfirmationDialogObject confirm)
A confirm object that defines an optional confirmation dialog that appears before the multi-select choices are submitted.- Returns:
this
.
-
maxSelectedItems
public MultiExternalSelectElement.MultiExternalSelectElementBuilder maxSelectedItems(Integer maxSelectedItems)
Specifies the maximum number of items that can be selected in the menu. Minimum number is 1.- Returns:
this
.
-
focusOnLoad
public MultiExternalSelectElement.MultiExternalSelectElementBuilder focusOnLoad(Boolean focusOnLoad)
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.- Returns:
this
.
-
build
public MultiExternalSelectElement build()
-
-