IAssetSources Module

A structure defining sources for the Asset Manager.

example

clientConfig.json

{
  "defaultAssetSelectWidget": "AssetManager",
  "assetSources": {
    "External urls": {
      "type": "MemorySource",
      "rootCategory": {
        "assets": [
          {
            "title": "Square",
            "preview": "http://example.com/images/preview/2.jpg",
            "source": "http://example.com/images/2.jpg"
          },
          {
            "title": "Buildings",
            "preview": "http://example.com/images/preview/4.jpg",
            "source": "http://example.com/images/4.jpg"
          }
        ],
        "categories": [
          {
            "name": "Stock images",
            "assets": [
              {
                "title": "Winter",
                "preview": "http://example.com/images/preview/16.jpg",
                "source": "http://example.com/images/16.jpg"
              },
              {
                "title": "Skating",
                "preview": "http://example.com/images/preview/20.jpg",
                "source": "http://example.com/images/20.jpg"
              }
            ]
          }
        ]
      }
    }
  },
  "widgets": {
    "AssetManager": {
      "tabs": [
        {
          "name": "The gallery based on external urls",
          "assetSourceInstance": "External urls",
          "iconClassName": "cc-icon-add-image"
        }
      ]
    }
  }
}

Indexable

[sourceInstanceName: string ]: IAssetSourceConfig

An array of Asset Manager's sources.

Modules

Name Description
IMemorySourceConfig

A structure defining the source type, content, and categories of images in the Asset Manager.

Interfaces

Name Description
IAssetSourceConfig

A structure defining the source type of the Asset Manager.