tridion-sites-extensions-api-docs

Home > @tridion-sites/models > DateFieldDefinition

DateFieldDefinition class

Represents a date field definition (in a Schema).

Signature:

export declare class DateFieldDefinition extends ItemPublishableFieldDefinition

Extends: ItemPublishableFieldDefinition

Constructors

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

Properties

Property Modifiers Type Description
_backendModel   BackendDateFieldDefinition  
defaultValue   string | undefined  
getInternalModel   () => BackendDateFieldDefinition  
isMaxValueExclusive   boolean Whether the specified maximum value is exclusive or inclusive.
isMinValueExclusive   boolean Whether the specified maximum value is exclusive or inclusive.
list   DateListDefinition | undefined List of allowed values
maxValue   Date | undefined Maximum value constraint.
minValue   Date | undefined Minimum value constraint.
pattern   string | undefined Regular expression pattern to constrain the value.