Skip to content

Latest commit

 

History

History
69 lines (62 loc) · 3.43 KB

File metadata and controls

69 lines (62 loc) · 3.43 KB
var ContentSidebar = require('./ContentSidebar').default;

<IntlProvider locale="en" textComponent={React.Fragment}>
    <ContentSidebar
        detailsSidebarProps={{
            hasProperties: true,
            hasNotices: true,
            hasAccessStats: true,
            hasClassification: true,
            hasRetentionPolicy: true,
            hasVersions: true,
        }}
        features={FEATURES}
        fileId={FILE_ID}
        hasActivityFeed
        hasMetadata
        hasSkills
        token={TOKEN}
        {...PROPS}
    />
</IntlProvider>

Screenshot

---

Props

Prop Type Default Description
fileId* string The id of the file to preview.
token* string See the developer docs.
activitySidebarProps ActivitySidebarProps {} See below
detailsSidebarProps DetailsSidebarProps {} See below
hasActivityFeed boolean false See the developer docs.
hasMetadata boolean false See the developer docs.
hasSkills boolean false See the developer docs.
language string en-US See the Internationalization section
messages Map<string, string> See the Internationalization section
metadataSidebarProps MetadataSidebarProps {} See below
requestInterceptor function See the developer docs.
responseInterceptor function See the developer docs.
skillsSidebarProps SkillsSidebarProps {} See below

ActivitySidebarProps

Prop Type Default Description
onCommentCreate function See the developer docs.
onCommentDelete function See the developer docs.

DetailsSidebarProps

Prop Type Default Description
hasAccessStats boolean false See the developer docs.
hasNotices boolean false See the developer docs.
hasProperties boolean false See the developer docs.
hasVersions boolean false See the developer docs.

MetadataSidebarProps

Prop Type Default Description
tbd - - -

SkillsSidebarProps

Prop Type Default Description
tbd - - -