Interface IAssetSources.IGallerySourceConfig
A structure defining properties of the user gallery and public gallery.
Package: @aurigma/design-editor-iframe
Examples
{
"assetSources": {
"My files": {
"type": "PrivateSource",
"allowedExtensions": [ "jpg", "jpeg", "png" ]
}
}
}
Properties
allowedExtensions
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", "ai", "psd"].
Declaration
allowedExtensions: string[];
Property Value
| Type | Description |
|---|---|
| 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", "ai", "psd"]. |
rootCategory
Allows you to specify a folder from which your users can select images in the PublicSource. You can also specify allowed subfolders of this folder.
Declaration
rootCategory?: IGallerySourceConfig.ICategory;
Property Value
| Type | Description |
|---|---|
| ICategory | Allows you to specify a folder from which your users can select images in the |