BeechCMS / @beechcms/core / NumberFieldOptions
Interface: NumberFieldOptions
Specialized configuration for a branch of type 'number'.
Properties
control?
optionalcontrol?:"input"|"slider"|"rating"|"stepper"
Alternative input mechanism for the entry editor. Default: 'input'.
currency?
optionalcurrency?:string
ISO 4217 currency code (required when format === 'currency'). E.g. 'EUR', 'USD'.
decimals?
optionaldecimals?:number
Explicit number of decimal digits to display and enforce.
format?
optionalformat?:"decimal"|"currency"|"percentage"|"compact"
Visual display style. Default: 'decimal'.
grouping?
optionalgrouping?:boolean
Enable/disable thousands separator grouping. Default: true.
max?
optionalmax?:number
Maximum allowed value.
min?
optionalmin?:number
Minimum allowed value.
prefix?
optionalprefix?:string
Custom text prepended to the formatted value.
step?
optionalstep?:number
Value increment (e.g. 1 for strict integers, 0.5 for half-steps).
suffix?
optionalsuffix?:string
Custom unit appended to the formatted value (e.g. 'kg', 'm²').