Need help in the process of creating your own WordPress theme?
Number option type.
| Name | Type | Default | Description |
|---|---|---|---|
| size | string |
short"" |
There are 3 sizes:
-
"short", for short input.-
"medium", for normal input.-
"large", for full width input. |
| spinner | boolean |
true |
Choose to hide or show number in put spinner. |
| min | number |
0 |
Specifies the minimum value allowed. |
| max | number |
100 |
Specifies the maximum value allowed. |
| step | number |
1 |
Specifies the legal number intervals. |
| updateRate | number |
16 |
Useful for performance reasons to prevent unnecessary element renderings.
|
| Name | Type | Default | Description |
|---|---|---|---|
| value | number |
0 |
Any number value. |
{
id: "posts",
type: "number"
}
{
label: "Posts number",
id: "posts",
type: "number",
config: {
size: "medium",
min: "20",
max: "400",
step: "2",
spinner: false,
},
}