Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ContentLink

Index

Constructors

Properties

Methods

Constructors

constructor

  • new ContentLink(connection: ClientConnection): ContentLink
  • Content Link - Use to open the content browser.

    Parameters

    • connection: ClientConnection

      message-event-channel connection

    Returns ContentLink

Properties

Private connection

connection: ClientConnection

message-event-channel connection

Methods

fetchLinks

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

    • contentTypeIds: Array<string>
    • Optional max: number | null

    Returns 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: CotnentLinkOptions = { max: null }

    Returns Promise<ContentItemLink[]>

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc