Package com.slack.api.model.dialog
Class DialogSelectElement.DialogSelectElementBuilder
java.lang.Object
com.slack.api.model.dialog.DialogSelectElement.DialogSelectElementBuilder
- Enclosing class:
- DialogSelectElement
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
dataSource
(DialogDataSourceType dataSource) Provide the data source type for the Element.Label displayed to user.minQueryLength
(Integer minQueryLength) Provide the number of characters that must be typed by a user.Name of form element.optional
(boolean optional) Provide true when the form element is not required.optionGroups
(List<DialogOptionGroup> optionGroups) Provide up to 100 option group element attributes.options
(List<DialogOption> options) Provide up to 100 option element attributes.placeholder
(String placeholder) A string displayed as needed to help guide users in completing the element.selectedOptions
(List<DialogOption> selectedOptions) Provide a default selected value for dynamic select menus with a data_source of type external.toString()
A default value for this field.
-
Method Details
-
label
Label displayed to user. Required. No more than 24 characters.- Returns:
this
.
-
name
Name of form element. Required. No more than 300 characters.- Returns:
this
.
-
value
A default value for this field. Must match a value presented inDialogOption
s.- Returns:
this
.
-
placeholder
A string displayed as needed to help guide users in completing the element. 150 character maximum.- Returns:
this
.
-
optional
Provide true when the form element is not required. By default, form elements are required.- Returns:
this
.
-
options
Provide up to 100 option element attributes. Either options or option_groups is required for the static and external.- Returns:
this
.
-
selectedOptions
public DialogSelectElement.DialogSelectElementBuilder selectedOptions(List<DialogOption> selectedOptions) Provide a default selected value for dynamic select menus with a data_source of type external.- Returns:
this
.
-
optionGroups
public DialogSelectElement.DialogSelectElementBuilder optionGroups(List<DialogOptionGroup> optionGroups) Provide up to 100 option group element attributes. Either options or option_groups is required for the static and external.- Returns:
this
.
-
minQueryLength
Provide the number of characters that must be typed by a user.- Returns:
this
.
-
dataSource
Provide the data source type for the Element.- Returns:
this
.
-
build
-
toString
-