Class PlainTextInputElement
java.lang.Object
com.slack.api.model.block.element.BlockElement
com.slack.api.model.block.element.PlainTextInputElement
public class PlainTextInputElement extends BlockElement
https://api.slack.com/reference/block-kit/block-elements#input
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlainTextInputElement.PlainTextInputElementBuilder -
Field Summary
-
Constructor Summary
Constructors Constructor Description PlainTextInputElement()PlainTextInputElement(String actionId, PlainTextObject placeholder, String initialValue, boolean multiline, Integer minLength, Integer maxLength, DispatchActionConfig dispatchActionConfig) -
Method Summary
Modifier and Type Method Description static PlainTextInputElement.PlainTextInputElementBuilderbuilder()protected booleancanEqual(Object other)booleanequals(Object o)StringgetActionId()An identifier for the input value when the parent modal is submitted.DispatchActionConfiggetDispatchActionConfig()StringgetInitialValue()The initial value in the plain-text input when it is loaded.IntegergetMaxLength()The maximum length of input that the user can provide.IntegergetMinLength()The minimum length of input that the user must provide.PlainTextObjectgetPlaceholder()A plain_text only text object that defines the placeholder text shown in the plain-text input.StringgetType()inthashCode()booleanisMultiline()Indicates whether the input will be a single line (false) or a larger textarea (true).voidsetActionId(String actionId)An identifier for the input value when the parent modal is submitted.voidsetDispatchActionConfig(DispatchActionConfig dispatchActionConfig)voidsetInitialValue(String initialValue)The initial value in the plain-text input when it is loaded.voidsetMaxLength(Integer maxLength)The maximum length of input that the user can provide.voidsetMinLength(Integer minLength)The minimum length of input that the user must provide.voidsetMultiline(boolean multiline)Indicates whether the input will be a single line (false) or a larger textarea (true).voidsetPlaceholder(PlainTextObject placeholder)A plain_text only text object that defines the placeholder text shown in the plain-text input.StringtoString()
-
Field Details
-
TYPE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
PlainTextInputElement
public PlainTextInputElement() -
PlainTextInputElement
public PlainTextInputElement(String actionId, PlainTextObject placeholder, String initialValue, boolean multiline, Integer minLength, Integer maxLength, DispatchActionConfig dispatchActionConfig)
-
-
Method Details
-
builder
-
getType
-
getActionId
An identifier for the input value when the parent modal is submitted. You can use this when you receive a view_submission payload to identify the value of the input element. Should be unique among all other action_ids used elsewhere by your app. Maximum length for this field is 255 characters. -
getPlaceholder
A plain_text only text object that defines the placeholder text shown in the plain-text input. Maximum length for the text in this field is 150 characters. -
getInitialValue
The initial value in the plain-text input when it is loaded. -
isMultiline
public boolean isMultiline()Indicates whether the input will be a single line (false) or a larger textarea (true). Defaults to false. -
getMinLength
The minimum length of input that the user must provide. If the user provides less, they will receive an error. Maximum value is 3000. -
getMaxLength
The maximum length of input that the user can provide. If the user provides more, they will receive an error. -
getDispatchActionConfig
-
setActionId
An identifier for the input value when the parent modal is submitted. You can use this when you receive a view_submission payload to identify the value of the input element. Should be unique among all other action_ids used elsewhere by your app. Maximum length for this field is 255 characters. -
setPlaceholder
A plain_text only text object that defines the placeholder text shown in the plain-text input. Maximum length for the text in this field is 150 characters. -
setInitialValue
The initial value in the plain-text input when it is loaded. -
setMultiline
public void setMultiline(boolean multiline)Indicates whether the input will be a single line (false) or a larger textarea (true). Defaults to false. -
setMinLength
The minimum length of input that the user must provide. If the user provides less, they will receive an error. Maximum value is 3000. -
setMaxLength
The maximum length of input that the user can provide. If the user provides more, they will receive an error. -
setDispatchActionConfig
-
toString
-
equals
-
canEqual
-
hashCode
public int hashCode()
-