Meet us at PRINT 19. Chicago, IL. Oct. 3 - 5.

ICategory Interface

A structure restricting folders in the public gallery.

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

example

clientConfig.json

{
    "assetSources": {
        "Public Gallery": {
            "type": "PublicSource",
            "allowedExtensions": [ "gif", "jpg", "svg", "pdf" ],
            "rootCategory": {
                "name": "logos",
                "categories": [
                    {
                        "name": "photos",
                        "categories": [
                            {
                                "name": "buildings"
                            }
                        ]
                    },
                    {
                        "name":  "shapes"
                    }
                ]
            }
        }
    }
}

Properties

Optional categories

categories: ICategory []

An array of subfolders to be displayed.

name

name: string

The name of a folder to be displayed.