Interface IGalleryButton
A structure defining configuration of the Toolbox for launching the Asset Manager in a predefined mode.
Package: @aurigma/design-editor-iframe
Remarks
For details, refer to the Image manager topic.
Examples
{
"assetSources": {
"Backgrounds": {
"type": "PublicSource",
"allowedExtensions": [ "jpg", "png" ]
},
"Instagram": {
"type": "SocialNetworkSource",
"network": "instagram",
"apiKey": "88884444aaaa222288883333ffff6666"
}
},
"widgets": {
"AssetManager": {
"tabs": [
{
"name": "Backgrounds",
"assetSourceInstance": "Backgrounds"
},
{
"name": "Instagram",
"assetSourceInstance": "Instagram"
}
]
},
"Toolbox": {
"buttons": [
{
"translationKey": "Toolbox.IMAGE",
"translationKeyTitle": "Toolbox.TITLE_ADD_IMAGE",
"iconClass": "cc-icon-add-image",
"buttons": [
"Image",
{
"action": "Image",
"translationKey": "Toolbox.INSTAGRAM",
"translationKeyTitle": "Toolbox.INSTAGRAM",
"iconClass": "cc-icon-add-instagram",
"tabs": [ "Instagram" ]
},
{
"action": "Image",
"translationKey": "Toolbox.BACKGROUNDS",
"translationKeyTitle": "Toolbox.BACKGROUNDS",
"iconClass": "cc-icon-add-background",
"tabs": [ "Backgrounds" ]
}
]
}
]
}
}
}
Properties
defaultTabName
A tab to be displayed when the Asset Manager opens. By default, the first tab opens.
Declaration
defaultTabName: string;
Property Value
| Type | Description |
|---|---|
| string | A tab to be displayed when the Asset Manager opens. By default, the first tab opens. |
tabs
An array of available tab names in the Asset Manager. By default, all defined tabs are displayed.
Declaration
tabs: string[];
Property Value
| Type | Description |
|---|---|
| string[] | An array of available tab names in the Asset Manager. By default, all defined tabs are displayed. |