static/jsvm/classes/NumberField.html
NumberField defines "number" type field for storing numeric (float64) value.
The respective zero record field value is 0.
The following additional setter keys are available:
- "fieldName+" - appends to the existing record value. For example: record.Set("total+", 5) - "fieldName-" - subtracts from the existing record value. For example: record.Set("total-", 5)Copy
columnTypefindSettergetHiddengetIdgetNamegetSystemprepareValuesetHiddensetIdsetNamesetSystemtypevalidateSettingsvalidateValue
hiddenidmax?min?nameonlyIntpresentablerequiredsystem
Optional data: Partial<core.NumberField>ColumnType implements [Field.ColumnType] interface method.
FindSetter implements the [SetterFinder] interface.
GetHidden implements [Field.GetHidden] interface method.
GetId implements [Field.GetId] interface method.
GetName implements [Field.GetName] interface method.
GetSystem implements [Field.GetSystem] interface method.
PrepareValue implements [Field.PrepareValue] interface method.
SetHidden implements [Field.SetHidden] interface method.
SetId implements [Field.SetId] interface method.
SetName implements [Field.SetName] interface method.
SetSystem implements [Field.SetSystem] interface method.
Type implements [Field.Type] interface method.
ValidateSettings implements [Field.ValidateSettings] interface method.
ValidateValue implements [Field.ValidateValue] interface method.
hidden: boolean
Hidden hides the field from the API response.
id: string
Id is the unique stable field identifier.
It is automatically generated from the name when adding to a collection FieldsList.
Optional maxmax?: number
Max specifies the max allowed field value.
Leave it nil to skip the validator.
Optional minmin?: number
Min specifies the min allowed field value.
Leave it nil to skip the validator.
name: string
Name (required) is the unique name of the field.
onlyInt: boolean
OnlyInt will require the field value to be integer.
presentable: boolean
Presentable hints the Dashboard UI to use the underlying field record value in the relation preview label.
required: boolean
Required will require the field value to be non-zero.
system: boolean
System prevents the renaming and removal of the field.
OSLightDark
Generated using TypeDoc