Class WorkflowButtonElement.WorkflowButtonElementBuilder
java.lang.Object
com.slack.api.model.block.element.WorkflowButtonElement.WorkflowButtonElementBuilder
- Enclosing class:
- WorkflowButtonElement
-
Method Summary
Modifier and TypeMethodDescriptionaccessibilityLabel
(String accessibilityLabel) A label for longer descriptive text about a button element.build()
Decorates buttons with alternative visual color schemes.text
(PlainTextObject text) A text object that defines the button's text.toString()
workflow
(WorkflowObject workflow) A workflow object that contains details about the workflow that will run when the button is clicked.
-
Method Details
-
actionId
- Returns:
this
.
-
text
A text object that defines the button's text. Can only be of type: plain_text. text may truncate with ~30 characters. Maximum length for the text in this field is 75 characters.- Returns:
this
.
-
workflow
A workflow object that contains details about the workflow that will run when the button is clicked.- Returns:
this
.
-
style
Decorates buttons with alternative visual color schemes. Use this option with restraint. primary gives buttons a green outline and text, ideal for affirmation or confirmation actions. primary should only be used for one button within a set. danger gives buttons a red outline and text, and should be used when the action is destructive. Use danger even more sparingly than primary. If you don't include this field, the default button style will be used.- Returns:
this
.
-
accessibilityLabel
public WorkflowButtonElement.WorkflowButtonElementBuilder accessibilityLabel(String accessibilityLabel) A label for longer descriptive text about a button element. This label will be read out by screen readers instead of the button text object. Maximum length for this field is 75 characters.- Returns:
this
.
-
build
-
toString
-