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

IGalleryButton Interface

A structure defining configuration of the Toolbox for launching the Image Gallery in a predefined mode. For more details, refer to the Using the Image Gallery topic.

example

clientConfig.json

"Toolbox": {
    "buttons": [
        {
            "translationKey": "Toolbox.IMAGE",
            "translationKeyTitle": "Toolbox.TITLE_ADD_IMAGE",
            "iconClass": "cc-icon-add-image",
            "buttons": [
                "Image",
                {
                    "action": "Image",
                    "translationKey": "Toolbox.FACEBOOK",
                    "translationKeyTitle": "Toolbox.FACEBOOK",
                    "iconClass": "cc-icon-add-facebook",
                    "tabs": [ "Facebook" ]
                }
            ]
        }
    ]
}

Properties

action

action: ButtonAction

The action that the button performs. You can define the Toolbox by using the actions alone.

Optional defaultTabName

defaultTabName: string

The default tab to be displayed when the Image Gallery opens. By default, the Image Gallery opens the User tab first.

Optional iconClass

iconClass: string

The class of the button icon.

Optional itemConfig

itemConfig: ITextConfig

A structure containing the configuration of new design elements. For an example, you can refer to the description of ILocationDefaultConfig.

Optional tabs

tabs: string []

The tabs available in the Image Gallery.

Optional translationKey

translationKey: string

The translation key of the button caption. The corresponding string should be defined in the ~\Configuration\translations.json file.

Optional translationKeyTitle

translationKeyTitle: string

The translation key of the button tooltip. The corresponding string should be defined in the ~\Configuration\translations.json file.

Optional type

The gallery used in the editor, either the Asset Manager or the Gallery Dialog. The default value is "GalleryDialog".