Class DatePickerElement.DatePickerElementBuilder
- java.lang.Object
-
- com.slack.api.model.block.element.DatePickerElement.DatePickerElementBuilder
-
- Enclosing class:
- DatePickerElement
public static class DatePickerElement.DatePickerElementBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DatePickerElement.DatePickerElementBuilder
actionId(String actionId)
An identifier for the action triggered when a menu option is selected.DatePickerElement
build()
DatePickerElement.DatePickerElementBuilder
confirm(ConfirmationDialogObject confirm)
A confirm object that defines an optional confirmation dialog that appears after a date is selected.DatePickerElement.DatePickerElementBuilder
initialDate(String initialDate)
The initial date that is selected when the element is loaded.DatePickerElement.DatePickerElementBuilder
placeholder(PlainTextObject placeholder)
A plain_text only text object that defines the placeholder text shown on the datepicker.String
toString()
-
-
-
Method Detail
-
actionId
public DatePickerElement.DatePickerElementBuilder 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
.
-
placeholder
public DatePickerElement.DatePickerElementBuilder placeholder(PlainTextObject placeholder)
A plain_text only text object that defines the placeholder text shown on the datepicker. Maximum length for the text in this field is 150 characters.- Returns:
this
.
-
initialDate
public DatePickerElement.DatePickerElementBuilder initialDate(String initialDate)
The initial date that is selected when the element is loaded. This should be in the format YYYY-MM-DD.- Returns:
this
.
-
confirm
public DatePickerElement.DatePickerElementBuilder confirm(ConfirmationDialogObject confirm)
A confirm object that defines an optional confirmation dialog that appears after a date is selected.- Returns:
this
.
-
build
public DatePickerElement build()
-
-