tridion-sites-extensions-api-docs

Home > @tridion-sites/models > NumberFieldDefinition

NumberFieldDefinition class

Represents a number field definition (in a Schema).

Signature:

export declare class NumberFieldDefinition extends ItemPublishableFieldDefinition

Extends: ItemPublishableFieldDefinition

Constructors

Constructor Modifiers Description
(constructor)({ backendModel, list })   Constructs a new instance of the NumberFieldDefinition class

Properties

Property Modifiers Type Description
_backendModel   BackendNumberFieldDefinition  
defaultValue   number | undefined  
fractionDigits   number | undefined Constraints on the number of fraction digits.
getInternalModel   () => BackendNumberFieldDefinition  
isMaxValueExclusive   boolean Whether the specified maximum value is exclusive or inclusive.
isMinValueExclusive   boolean Whether the specified minimum value is exclusive or inclusive.
list   NumberListDefinition | undefined List of allowed values
maxValue   number | undefined Maximum value constraint.
minValue   number | undefined Minimum value constraint.
pattern   string | undefined Regular expression pattern to constrain the value.
totalDigits   number | undefined Constraint on the total number of digits.