Package com.slack.api.model.dialog
Class DialogTextElement.DialogTextElementBuilder
java.lang.Object
com.slack.api.model.dialog.DialogTextElement.DialogTextElementBuilder
- Enclosing class:
- DialogTextElement
-
Method Summary
Modifier and TypeMethodDescriptionbuild()Helpful text provided to assist users in answering a question.Label displayed to user.maxLength(int maxLength) Maximum input length allowed for element.minLength(int minLength) Minimum input length allowed for element.Name of form element.optional(boolean optional) Providetruewhen the form element is not required.placeholder(String placeholder) A string displayed as needed to help guide users in completing the element.subtype(DialogSubType subtype) Subtype for this text type element (e.g.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. Up to 500 characters.- Returns:
this.
-
placeholder
A string displayed as needed to help guide users in completing the element. 150 character maximum.- Returns:
this.
-
optional
Providetruewhen the form element is not required. By default, form elements are required.- Returns:
this.
-
maxLength
Maximum input length allowed for element. Up to 150 characters. Defaults to 150.- Returns:
this.
-
minLength
Minimum input length allowed for element. Typetext: Up to 150 characters. Defaults to 0.- Returns:
this.
-
hint
Helpful text provided to assist users in answering a question. Up to 150 characters.- Returns:
this.
-
subtype
Subtype for this text type element (e.g. Number)- Returns:
this.
-
build
-
toString
-