Demo (Documentation)
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>
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 |
Prop | Type | Default | Description |
---|---|---|---|
onCommentCreate | function | See the developer docs. | |
onCommentDelete | function | See the developer docs. |
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. |
Prop | Type | Default | Description |
---|---|---|---|
tbd | - | - | - |
Prop | Type | Default | Description |
---|---|---|---|
tbd | - | - | - |