Displays a standard input range, a slider used to choose a value between 2 delimiters.

type

(string)  Must be equals to range.

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. If not specified, the default value will be used (0).

max

(int|float)  The maximum allowed number. If not specified, the default value will be used (100).

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.

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.

[
    'opacity' => [
        'type' => 'range',
        'label' => 'Opacity',
        'value' => 50,
    ]
]

Changelog

Version Description
1.9 Introduced.
Last Update: 2023-12-29 14:15
Helpful?