NumberBox

Numeric input with integer/decimal presets, min/max range, and step control.

Examples

With Step

Enter numbers to see output...
PHP

PHP PHP Methods (Fluent)

Method / PropertyParametersDescription
$m->numberbox($id)stringCreate a number input component.
->value($value)?stringSet the initial value.
->placeholder($text)stringSet placeholder text.
->name($name)stringForm field name.
->required($req)boolMark as required.
->min($min)floatMinimum allowed value.
->max($max)floatMaximum allowed value.
->step($step)floatStep increment.
->disabled($dis)boolDisable the input.
->integer()Preset for integers: step=1.
->decimal($precision)intPreset for decimals with given decimal places (default: 2).
->range($min, $max)float, floatSet both min and max in one call.
->allowDecimals($allow)boolAllow decimal input (auto-sets step=0.01).