Skip to content

Number

Designate a integer-only textfield. Class: Code16\Sharp\Form\Fields\SharpFormNumberField

Configuration

setMin

The minimum value that the UI allows.

setMax

The maximum value that the UI allows.

setStep

The step between values (with controls or arrow keys). Default is 1.

setShowControls

Display mouse control (spinner). Default is false.

Formatter

  • toFront: will cast the provided value as an int.
  • fromFront: returns an int.

Released under the MIT License.