English (United Kingdom)

Displays a standard input number.

type

(string)  Must be equals to number.

label

(string)  The label to display next to the field.

help

(string)  An optional text to describe the purpose of the field.

required

(bool)  Whether the field is mandatory or optional.

default

(int|float)  An optional default number.

value

(int|float)  The last saved number.

min

(int|float)  The minimum allowed number.

max

(int|float)  The maximum allowed number.

step

(int|float|string)  The stepping interval when clicking up and down spinner buttons. Use any to support any number.

id

(string)  An optional field ID.

class

(string)  An optional field class suffix.

hidden

(bool)  True to avoid displaying the label of the field.

[
    'age' => [
        'type' => 'number',
        'label' => 'Age',
        'value' => 30,
        'min' => 18,
        'step' => 1,
    ]
]

Changelog

Version Description
1.2.5 Introduced.
Last Update: 2022-03-09
Helpful?
This site uses cookies. By continuing to browse you accept their use. Further information