Number
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.
value
-
(int|float) The field value attribute.
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.
title
-
(string) An optional title attribute for the field.
style
-
(string) An optional style attribute for the field.
readonly
-
(bool) Whether the field is read-only.
disabled
-
(bool) Whether the field is disabled or not.
data
-
(string) A string of data- concatenated attributes.
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.3 | Introduced. |