Skip to content

Number ​

Designate a numeric 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 a float.
  • fromFront: returns a float.

Released under the MIT License.