Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ContentLink

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ContentLink(connection: ClientConnection): ContentLink

Properties

Private connection

connection: ClientConnection

message-event-channel connection

Methods

fetchLinks

  • fetchLinks(contentTypeIds: Array<string>, max?: number | null): Promise<any>

get

  • This method will trigger a content browser. It returns a promise that will resolve to the chosen Content Link.

    Parameters

    • contentTypeIds: Array<string>

      list of Content Type Ids to filter the Content Browser by.

      Example

      const enums = sdk.field.schema.allOf[1].properties.contentType.enum;
      const contentLink = await sdk.contentLink.get(enums);
      
      console.log(contentLink);
      

    Returns Promise<ContentItemLink>

getMultiple

  • This method will trigger a content browser. It returns a promise that will resolve to the chosen Content References.

    Parameters

    • contentTypeIds: Array<string>

      list of Content Type Ids to filter the Content Browser by.

    • Default value options: ContentLinkOptions = { max: null }

    Returns Promise<ContentItemLink[]>

Legend

  • Constructor
  • Property
  • Method
  • Private property
  • Private method
  • Property
  • Inherited property
  • Protected property

Generated using TypeDoc