@slack/web-api / NumberInput
Defined in: node_modules/@slack/types/dist/block-kit/block-elements.d.ts:408
Allows user to enter a number into a single-line field. The number input element accepts both whole and
decimal numbers. For example, 0.25, 5.5, and -10 are all valid input values. Decimal numbers are only allowed when
is_decimal_allowed is equal to true.
- Number input element reference.
- This is an interactive component - see our guide to enabling interactivity.
optional action_id: string;Defined in: node_modules/@slack/types/dist/block-kit/extensions.d.ts:12
@description: An identifier for this action. 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 in the containing block. Maximum length for this field is 255 characters.
optional dispatch_action_config: DispatchActionConfig;Defined in: node_modules/@slack/types/dist/block-kit/extensions.d.ts:28
A DispatchActionConfig object that determines when during text input the element returns a `block_actions` payload.
Dispatchable.dispatch_action_config
optional focus_on_load: boolean;Defined in: node_modules/@slack/types/dist/block-kit/extensions.d.ts:36
Indicates whether the element will be set to auto focus within the
`view` object. Only one element can be set to true.
Defaults to false.
optional initial_value: string;Defined in: node_modules/@slack/types/dist/block-kit/block-elements.d.ts:420
The initial value in the input when it is loaded.
is_decimal_allowed: boolean;Defined in: node_modules/@slack/types/dist/block-kit/block-elements.d.ts:416
Decimal numbers are allowed if this property is true, set the value to false otherwise.
optional max_value: string;Defined in: node_modules/@slack/types/dist/block-kit/block-elements.d.ts:428
The maximum value, cannot be less than min_value.
optional min_value: string;Defined in: node_modules/@slack/types/dist/block-kit/block-elements.d.ts:424
The minimum value, cannot be greater than max_value.
optional placeholder: PlainTextElement;Defined in: node_modules/@slack/types/dist/block-kit/extensions.d.ts:49
A PlainTextElement object that defines the placeholder text shown on the element. Maximum
length for the text field in this object is 150 characters.
type: "number_input";Defined in: node_modules/@slack/types/dist/block-kit/block-elements.d.ts:412
The type of element. In this case type is always number_input.