Class NumberInputElement.NumberInputElementBuilder
- java.lang.Object
-
- com.slack.api.model.block.element.NumberInputElement.NumberInputElementBuilder
-
- Enclosing class:
- NumberInputElement
public static class NumberInputElement.NumberInputElementBuilder extends Object
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NumberInputElement.NumberInputElementBuilderactionId(String actionId)An identifier for the input value when the parent modal is submitted.NumberInputElementbuild()NumberInputElement.NumberInputElementBuilderdecimalAllowed(boolean decimalAllowed)Decimal numbers are allowed if is_decimal_allowed= true, set the value to false otherwise.NumberInputElement.NumberInputElementBuilderdispatchActionConfig(DispatchActionConfig dispatchActionConfig)A dispatch configuration object that determines when during text input the element returns a block_actions payload.NumberInputElement.NumberInputElementBuilderfocusOnLoad(Boolean focusOnLoad)Indicates whether the element will be set to autofocus within the view object.NumberInputElement.NumberInputElementBuilderinitialValue(String initialValue)The initial value in the plain-text input when it is loaded.NumberInputElement.NumberInputElementBuildermaxValue(String maxValue)The maximum value, cannot be less than min_value.NumberInputElement.NumberInputElementBuilderminValue(String minValue)The minimum value, cannot be greater than max_value.NumberInputElement.NumberInputElementBuilderplaceholder(PlainTextObject placeholder)A plain_text only text object that defines the placeholder text shown in the plain-text input.StringtoString()
-
-
-
Method Detail
-
actionId
public NumberInputElement.NumberInputElementBuilder actionId(String actionId)
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.- Returns:
this.
-
decimalAllowed
public NumberInputElement.NumberInputElementBuilder decimalAllowed(boolean decimalAllowed)
Decimal numbers are allowed if is_decimal_allowed= true, set the value to false otherwise.- Returns:
this.
-
placeholder
public NumberInputElement.NumberInputElementBuilder placeholder(PlainTextObject placeholder)
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.- Returns:
this.
-
initialValue
public NumberInputElement.NumberInputElementBuilder initialValue(String initialValue)
The initial value in the plain-text input when it is loaded.- Returns:
this.
-
minValue
public NumberInputElement.NumberInputElementBuilder minValue(String minValue)
The minimum value, cannot be greater than max_value.- Returns:
this.
-
maxValue
public NumberInputElement.NumberInputElementBuilder maxValue(String maxValue)
The maximum value, cannot be less than min_value.- Returns:
this.
-
dispatchActionConfig
public NumberInputElement.NumberInputElementBuilder dispatchActionConfig(DispatchActionConfig dispatchActionConfig)
A dispatch configuration object that determines when during text input the element returns a block_actions payload.- Returns:
this.
-
focusOnLoad
public NumberInputElement.NumberInputElementBuilder focusOnLoad(Boolean focusOnLoad)
Indicates whether the element will be set to autofocus within the view object. Only one element can be set to true. Defaults to false.- Returns:
this.
-
build
public NumberInputElement build()
-
-