Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ContentReference

Index

Constructors

Properties

Methods

Constructors

constructor

Properties

Private connection

connection: ClientConnection

message-event-channel connection

Methods

Private fetchReferences

  • fetchReferences(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 Reference.

    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 contentRef = await sdk.contentReference.get(enums);
      
      console.log(contentRef);

    Returns Promise<ContentItemReference>

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

    Returns Promise<ContentItemReference[]>

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