IGallerySourceConfig Module

A structure defining properties of the user gallery and public gallery.

example

clientConfig.json

{
  "assetSources": {
    "My files": {
      "type": "PrivateSource",
      "allowedExtensions": [ "jpg", "jpeg", "png" ]
    }
  }
}

Interfaces

Name Description
ICategory

A structure restricting folders in the public gallery.

Properties

allowedExtensions

allowedExtensions: string []

An array of image types that the user is allowed for uploading. The complete list of supported extentions is ["jpg", "jpeg", "png", "bmp", "gif", "tiff", "svg", "pdf"]. Note that the Asset Manager uploads SVG and PDF images in the raster format.

Optional rootCategory

rootCategory: ICategory

Allows you to specify a folder from which your users can select images in the PublicSource. You can also list available subfolders of this folder.

type

type: "PublicSource" | "PrivateSource"