- Name:
number
- UI: HTML number input
- Data type:
string
ornumber
. Configured byvalue_type
option
The number widget uses an HTML number input, saving the value as a string, integer, or floating point number.
Widget Options
For common options, see Common widget options.
Name 17415_086cb2-2b> |
Type 17415_6f6725-a8> |
Default 17415_3d47b9-75> |
Description 17415_3247ba-60> |
---|---|---|---|
default 17415_8a78a9-de> |
string |
|
Optional. The default value for the field. Accepts a string or number 17415_69a17f-62> |
value_type 17415_bba0a1-f4> |
‘int’ |
|
Optional. Accepts |
min 17415_d74f42-76> |
number 17415_1a9bcc-c8> | 17415_7dadfb-a0> |
Optional. Minimum value accepted. If a pattern is provided (see Common widget options), min is ignored during validation, but is still applied to the input 17415_8f0fc5-58> |
max 17415_4cca34-21> |
number 17415_eb4194-ac> | 17415_9a3180-b6> |
Optional. Maximum value accepted. If a pattern is provided (see Common widget options), max is ignored during validation, but is still applied to the input 17415_73c139-9c> |
step 17415_6428cc-3d> |
number 17415_05aaa1-3c> |
|
Optional. Size of steps when stepping up or down in input 17415_6a2614-0c> |
prefix 17415_f3971f-b0> |
string 17415_a4ed96-0f> |
|
Optional. Text to show before number input 17415_4241a4-f0> |
suffix 17415_c7dcb2-70> |
string 17415_539dd5-6d> |
|
Optional. Text to show after number input 17415_78cf96-fa> |
Example
name: 'puppies'
label: 'Puppy Count'
widget: 'number'
default: 2
value_type: 'int'
min: 1
max: 101
step: 2
name: 'puppies',
label: 'Puppy Count',
widget: 'number',
default: 2,
value_type: 'int',
min: 1,
max: 101,
step: 2,