Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NumberField<W>

Number field within a form.

Type parameters

Hierarchy

Index

Properties

key

key: string

The property key that this field value will appear in the returned form object.

Optional label

label: string

Input label.

type

type: "number"

Field data type.

Optional validation

validation: Partial<{ lessThan: ValidationEntry<number>; max: ValidationEntry<number>; min: ValidationEntry<number>; moreThan: ValidationEntry<number>; negative: ValidationEntry<any>; positive: ValidationEntry<any>; required: ValidationEntry<any> }>

Validation rules used to validate user input.

Optional value

value: number

Default value for field, and where it will be written to

widget

widget: W

Generated using TypeDoc