Get pluginBuy

Number field

simple number field

Usage:

array(
	'id' => 'my_num_field',
	'label' => 'Label',
	'type' => 'number',
)

Parameters

Name Description
id (String) Field id. Required.
label (String) Field label. Required.
default (Number) Default predefined value.
class (String|Array) CSS classes, as an array or separated by spaces. Defaults to “small-text”.
placeholder (String) Field placeholder.
short_description (String) Text or HTML that will be displayed right to the field.
description (String) Some text or HTML that will be displayed below the field.
min (Number) Minimum value, can be below zero.
max (Number) Maximum field value.
step (Number) A stepping interval to use when clicking up and down arrows.
show_if (Array) You can display this field conditionally. In order to do that pass id key and value key with an id and value of any other checkbox, select or radio field the current field should depend on. Read more about conditional logic.