tridion-sites-extensions-api-docs

Home > @tridion-sites/models > ComponentLinkFieldDefinition

ComponentLinkFieldDefinition class

Represents a Component link field definition (in a Schema).

Signature:

export declare class ComponentLinkFieldDefinition extends ItemPublishableFieldDefinition

Extends: ItemPublishableFieldDefinition

Constructors

Constructor Modifiers Description
(constructor)({ backendModel, allowedTargetSchemas, defaultValue })   Constructs a new instance of the ComponentLinkFieldDefinition class

Properties

Property Modifiers Type Description
_backendModel   BackendComponentLinkFieldDefinition  
allowedTargetSchemas   ReadonlyArray<Link> | undefined Allowed Schemas for the linked Components. An empty list means that the target Schema is not constrained.
allowMultimediaLinks   boolean Whether links to Multimedia Components are allowed.
defaultValue   Link | undefined Component used as default field’s value.
getInternalModel   () => BackendComponentLinkFieldDefinition