Meet us at Print 18. Chicago, IL. Sept. 30 - Oct. 2.

IMemorySourceConfig Module

A structure defining the type and categories of asset sources.

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"
        }
      ]
    }
  }
}

Interfaces

Name Description
ICategory

A structure defining an asset category.

IUrlAsset

A structure defining links to images.

Properties

rootCategory

rootCategory: ICategory

The object defining the root category for a source.

type

type: "MemorySource"

A source type. In the current implementation, MemorySource is the only type.