Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface NumberFieldConfig

Hierarchy

Index

Properties

Optional classes

classes?: string[]

Extra css classes to apply to the field in the editor.

Optional default

default?: any

default value to use for the field.

Optional help

help?: string | Record<string, string>

Help string to display to assist user in understanding the expectations of the field.

In complex fields, this can be broken up into zones like validation rules.

key

key: string

Key to reference the field in the data.

Optional label

label?: string

Label for the field in the editor.

Optional max

max?: number

Maximum value for the number input.

Optional min

min?: number

Minimum value for the number input.

Optional placeholder

placeholder?: string

Placeholder for the number input.

Optional step

step?: number

Step size for the number input.

type

type: string

Type of field. Used to create the correct field in the editor UI.

Optional validation

validation?: RuleConfig[] | Record<string, RuleConfig[]>

Validation rules that should be applied to the field.

In complex fields, this can be broken up into zone like help text.

Generated using TypeDoc