White paper: Templates in web-to-print.  Free download

IAssetManagerConfig Module

A structure defining tabs of the Asset Manager. For details, see The Asset Manager topic.

example
{
  "widgets": {
    "AssetManager": {
      "maxUploadFileSize": 2048000,
      "defaultTabName": "External urls",
      "tabs": [
        {
          "name": "My files",
          "assetSourceInstance": "My files",
          "iconClassName": "cc-icon-uploadable"
        },
        {
          "name": "External urls",
          "assetSourceInstance": "External urls",
          "iconClassName": "cc-icon-add-image"
        }
      ]
    }
  }
}

Interfaces

Name Description
ITabConfig

A structure defining tabs of the Asset Manager.

Properties

Optional defaultTabName

defaultTabName: string

The default tab is displayed when you open the Asset Manager; it should be one of ITabConfig.name.

Optional maxUploadFileSize

maxUploadFileSize: number

The maximum size of files that can be uploaded through the Asset Manager, in bytes. This value must be 102400 (100 kB) or more. By default, this value is null, and the size of uploaded files is not limited.

Optional saveAllowedTabAfterInsert

saveAllowedTabAfterInsert: boolean

Allows you to restrict the image selection only to the asset tab from which an image was selected. If true, your users cannot open another tab. The default value is false.

tabs

tabs: ITabConfig []

The array of tabs available in the Asset Manager. The IAssetSources interface allows you to define the sources of these tabs.