Skip to content

Latest commit

 

History

History
74 lines (69 loc) · 5.83 KB

File metadata and controls

74 lines (69 loc) · 5.83 KB
var ContentExplorer = require('./ContentExplorer').default;

<IntlProvider locale="en" textComponent={React.Fragment}>
    <ContentExplorer
        contentPreviewProps={{
            contentSidebarProps: {
                detailsSidebarProps: {
                    hasProperties: true,
                    hasNotices: true,
                    hasAccessStats: true,
                    hasClassification: true,
                    hasRetentionPolicy: true,
                    hasVersions: true,
                },
                features: FEATURES,
                hasActivityFeed: true,
                hasMetadata: true,
                hasSkills: true,
            },
        }}
        features={FEATURES}
        rootFolderId={FOLDER_ID}
        token={TOKEN}
    />
</IntlProvider>

Screenshot

---

Props

Prop Type Default Description
token* string See the developer docs.
autoFocus boolean See the developer docs.
canCreateNewFolder boolean true See the developer docs.
canDelete boolean true See the developer docs.
canDownload boolean true See the developer docs.
canPreview boolean true See the developer docs.
canRename boolean true See the developer docs.
canSetShareAccess boolean true See the developer docs.
canShare boolean true See the developer docs.
canUpload boolean true See the developer docs.
contentPreviewProps Object {} Props that can be forwarded to the Content Preview UI Element. See them in the props section of Content Preview UI Element
currentFolderId string The current folder shown for the content explorer. This should be a sub folder to the root folder.
defaultView string files See the developer docs.
initialPage number 1 See the developer docs.
initialPageSize number 50 See the developer docs.
isTouch boolean See the developer docs.
language string en-US See the Internationalization section
logoUrl string See the developer docs.
messages Map<string, string> See the Internationalization section
onCreate Folder>) Callback function for when a folder is created.
onDelete function(Array<File>) Callback function for when item(s) are deleted.
onDownload function(Array<File>) Callback function for when item(s) are downloaded.
onNavigate function(File) Callback function for when navigating into a folder.
onPreview function(File) Callback function for when an item is previewed.
onRename function(File) Callback function for when an item is renamed.
onSelect function(Array<Folder|File|Web Link>) Callback function for when item(s) are selected.
onUpload function(Array<File>) Callback function for when item(s) are uploaded.
requestInterceptor function See the developer docs.
responseInterceptor function See the developer docs.
rootFolderId string 0 The root folder for the content explorer.
sharedLink string See the developer docs.
sharedLinkPassword string See the developer docs.
sortBy string name See the developer docs.
sortDirection string asc See the developer docs.

Keyboard Shortcuts

See the developer docs.