NumberInput
value type: number
The NumberInput
allows a user to input a number.
Block
State
block_id: null
Block Setup
id: block_id
type: NumberInput
Settings
NumberInput JSON Schema Definition
type: object
properties:
events:
additionalProperties: false
properties:
onChange:
description: Trigger actions when number is changed.
type: array
onPressEnter:
description: Trigger actions when input is focused and enter is pressed.
type: array
type: object
properties:
additionalProperties: false
properties:
autoFocus:
default: false
description: Autofocus to the block on page load.
type: boolean
decimalSeparator:
default: .
description: Separator between number and decimal places.
type: string
disabled:
default: false
description: Disable the block if true.
type: boolean
inputStyle:
description: Css style to applied to input.
type: object
label:
additionalProperties: false
description: Label properties.
properties:
align:
default: left
description: Align label left or right when inline.
enum:
- left
- right
type: string
colon:
default: true
description: Append label with colon.
type: boolean
disabled:
default: false
description: Hide input label.
type: boolean
extra:
description: Extra text to display beneath the content - supports html.
type: string
extraStyle:
description: Css style to applied to label extra.
type: object
feedbackStyle:
description: Css style to applied to label feedback.
type: object
hasFeedback:
default: true
description: >-
Display feedback extra from validation, this does not disable
validation.
type: boolean
inline:
default: false
description: Render input and label inline.
type: boolean
span:
description: Label inline span.
type: number
title:
description: Label title - supports html.
type: string
type: object
max:
description: Maximum value allowed by the block.
type: number
min:
description: Minimum value allowed by the block.
type: number
placeholder:
description: >-
Placeholder text inside the block to show message before user types
input.
type: string
precision:
description: Precision (number of decimal places) allowed by the block.
type: integer
size:
default: default
description: Size of the block.
enum:
- small
- default
- large
type: string
step:
default: 1
description: >-
The number to which the current value is increased or decreased. It can
be an integer or decimal.
type: number
title:
description: Number input label title - supports html.
type: string
type: object