Interface IAssetSources.IGallerySourceConfig.ICategory
A structure restricting folders in the public gallery.
Package: @aurigma/design-editor-iframe
Examples
This example illustrates how you can display images from the following folders:
/PublicGalleryFolder/logos/photos//PublicGalleryFolder/logos/photos/buildings/and subfolders/PublicGalleryFolder/logos/shapes/and subfolders
{
"assetSources": {
"Public Gallery": {
"type": "PublicSource",
"allowedExtensions": [ "gif", "jpg", "svg", "pdf" ],
"rootCategory": {
"name": "logos",
"categories": [
{
"name": "photos",
"categories": [
{
"name": "buildings"
}
]
},
{
"name": "shapes"
}
]
}
}
}
}
Properties
categories
An array of subfolders to be displayed.
Declaration
categories?: ICategory[];
Property Value
| Type | Description |
|---|---|
| ICategory[] | An array of subfolders to be displayed. |
name
The name of a folder to be displayed.
Declaration
name: string;
Property Value
| Type | Description |
|---|---|
| string | The name of a folder to be displayed. |