You’re viewing outdated documentation. View the latest Customer’s Canvas On-Premises documentation.

openGalleryForItem Method

Applies to: Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · Archived documentation

Callable

  • openGalleryForItem(name: string, params?: object ) : Promise < void >
  • Opens the Asset Manager to select an image for the specified item.

    example
    let editor = await CustomersCanvas.IframeApi.loadEditor(iframe, product, config);
    editor.openGalleryForItem("Company Logo", { tabs: ["Logos"] });

    Parameters

    • name: string

      The name of the image you want to change.

    • Optional params: object

      Parameters defining the appearance of the Asset Manager.

      • Optional tabs: string []

        An array of tabs available for selecting images.

    Returns Promise < void >